Solved

LINUX CENTOS ERROR...

Posted on 2011-02-27
15
584 Views
Last Modified: 2013-12-16
Hello experts,
                       My centos server suddenly restarts and after that it cannot enter to the login prompt and it shows error. "exec of /sbin/init Permission denied
Kernel Panic - not syncing: Attempted to kill init !"  how to recover it? please reply immedeately. Thanks in advance.
0
Comment
Question by:jacobbbc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
  • 2
  • +3
15 Comments
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 34994862
Hi,

It seems that you have a problem with your filesystem or memory. First of all I'll suggest you to boot from the CD and try to enter "linux memtest" on the command line. It might take quite a long time before the test completes. If the test finishes without error I'll suggest you to boot into rescue mode and try to check your system volume through fsck.

Cheers,
K.
0
 
LVL 3

Expert Comment

by:skymo
ID: 34994893
Did you "play" with selinux before you have restart the server or made a chmod/chown at the wrong location in the file system ? if so use the CD approch and change back the configureations. e.g. chmod init process back to 755
0
 

Author Comment

by:jacobbbc
ID: 34994932
@skymo i think it is permission problem nit hardware. How to recover it.
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 

Author Comment

by:jacobbbc
ID: 34994954
Is it possible to repair it to old permission state??
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 34995142
Did you play with permissions ????
0
 
LVL 12

Accepted Solution

by:
upanwar earned 500 total points
ID: 34995206
If it is permission issue and you know that what are the changes you have made then, either boot your system in rescue mode or boot your system with Live CD like knoppix or Slax and revert your changes.

Download slax:

http://www.slax.org/

Burn the cd and boot off it. Login as root and navigate to your partition mount point(/mnt/device_name_for_partition).

Download Knoppix:

http://www.knopper.net/knoppix/index-en.html

0
 

Author Comment

by:jacobbbc
ID: 34995269
@upanwar: Thanks. Is it like system restore in windows?
0
 

Author Comment

by:jacobbbc
ID: 34995301
@KeremE: I sure this is permisssion problem...
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 34995610
Ok then boot into Rescue Mode. I doubt any other distro would help repairing it. CentOS and RHEL both involves LVM and other distros won't support it through boot so you'd better get a CentOS distro boot into rescue mode. mount your volume and replace the permission of init with 755.

You can also reinstall without removing the Linux Partitions which would reinstall the system without disrupting installed applications. This is like a system rescue in Windows. I don't  think system restore has a counterpart in Linux.

Cheers,
K.
0
 

Author Comment

by:jacobbbc
ID: 34995651
@KeremE: Thanks. How to reinstall without removing the Linux Partitions?
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 34995811
- Insert tne CD.
- Start installation normally hittin enter at the boot prompt.
- When it asks to remove linux partitions select not to remove them and continue installation.. from on screen commands.

This is it.

Cheers,
K.
0
 

Author Comment

by:jacobbbc
ID: 34995920
@KeremE: If i do this what about my installed services. Sendmail, ftp etc.
0
 
LVL 2

Expert Comment

by:ind_selva
ID: 34995994
boot with linux rescue nomount option. then run fsck. its fix all corrupted files.
0
 
LVL 2

Expert Comment

by:Diogo Uchoas
ID: 34996035
Just boot with live CD, mount the hard disk and run fsck.
It should repair your filesystem.
0
 
LVL 12

Expert Comment

by:upanwar
ID: 34996175
Hi jacobbbc,

I have discussed your issue with my friend, who is working with REDHAT so he told me that if we reinstall the same version of CentOS/Redhat then it is safe, there is no harm to your services and configuration file.

If minor version change is there then new config files will be saved with .rpmnew. But if there are major change in version then It will create problem.

So it is a safe way to reinstall the Linux with same version but not recommended by Redhat.

Or
as I have suggested above to use Live CD to correct your permission issue.

You have two choice so you may choose whatever you want.

0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AWS Central Authentication 1 103
Quickest way to query Windows Event ID from a Linux Device 3 76
rsyslog raw message 4 38
Fuzzy search functionality DB2 UDB 3 38
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

697 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question