Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-19-2008, 11:49 AM
|
#1
|
LQ Newbie
Registered: Jun 2008
Distribution: Fedora Core 3, 4 & 5
Posts: 2
Rep:
|
exec of init (/sbin/init) failed!!!: 13
Hello,
I'm new to this forum, but found it while searching for the problem mentioned in the subject.
Unfortunately I didn't find the full solution, so I have to ask and hope someone can help me out.
Last night my Linux machine stopped.
When I restarted the machine (running Fedora Core 4) I got the following error messages:
-----
exec of init (/sbin/init) failed!!!: 13
Kernel panic - not syncing: Attempted to kill init!
-----
I've inserted the FC4 cd and started in linux rescue mode and can access the harddrive and see (/mnt/sysimage)/sbin/init and
(/mnt/sysimage)/etc/inittab etc.
I've tried to change initdefault in inittab from 5 to 1 to see if the machine could boot in single user mode, but without any luck.
Do someone have the answer to how I get the system up and running again?
During my attempt to do things mentioned in other threads, I also tried to run:
chroot /mnt/sysimage
as proposed by the guide when entering the rescue mode, but I got the following error message:
"chroot: cannot execute /bin/sh: Permission denied"
If I try to give the command /bin/sh manually, I don't get any error message.
Looking forward to hear some hints and solutions
Best regards
Egon Andersen
|
|
|
06-20-2008, 01:15 PM
|
#2
|
CS-Project Lead Developer
Registered: May 2008
Location: Bismarck, ND
Distribution: OpenSuSE 10.3
Posts: 14
Rep:
|
Single mode
Jump into single user mode and see if there's anything there. Reboot the system, and when there's a prompt to pass arguments, type "1" and hit enter (that's how it works on RHEL and OpenSuSE, at least). If the normal partitions aren't mounted, you can mount them manually, and see what's going on. I would guess, however, that this is just a symptom of a failing hard drive.
Otherwise, give us more information about the system: - How long since it was last rebooted
- Any changes made since last reboot
- Boot loader changes (i.e. switching from LILO to GRUB or vice-versa)
- Why you needed to reboot
|
|
|
06-20-2008, 03:41 PM
|
#3
|
LQ Newbie
Registered: Jun 2008
Distribution: Fedora Core 3, 4 & 5
Posts: 2
Original Poster
Rep:
|
I've tried to enter single user mode simply by changing the initdefault to 1 and rebooted as already written in the original posting.
That didn't help, as it is /sbin/init that fails, which is the parent of all other processes.
1)
I believe it is 1-2 weeks since the system was rebooted last time. I don't reboot very often.
2)
I haven't made any changes related to any start up. I've changed a little related to apache configuration several weeks ago, but that hasn't really anything to do with /sbin/init as far as I can tell. I believe the system has been restarted after that anyway.
3)
Haven't changed anything related to the boot loader (GRUB)
4)
I didn't have any need to reboot. The machine was just rebooting on its own during the night and that apparently failed. It could have been caused by some power drop - I don't know the reason why it tried to reboot. It wasn't initialized by anyone.
You guess about hard disc failure. That was also one of my guesses, but I've run badblocks with no errors. I've run fsck on all partitions - no problems. I can access all partitions when I start the machine in linux rescue mode. I've also run a 2 hour check of ram - no problems either.
It seems really strange to me that /sbin/init just fails.
|
|
|
06-26-2008, 05:20 AM
|
#4
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,637
Rep:
|
/sbin/init is a bash script AFAIR. You can put bash in the debug modus (something like invoking bash with the "-x" option). Perhaps that will produce some more information where /sbin/init fails. It is calling a lot of other scripts too, after all.
|
|
|
All times are GMT -5. The time now is 01:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|