LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-18-2006, 10:50 AM   #1
Cdzin
Member
 
Registered: Jul 2003
Location: Campinas-SP, Brazil
Distribution: Slackware
Posts: 61

Rep: Reputation: 15
"INIT: cannot execute '/etc/rc.d/rc.S'" - Slack not booting, help needed


Hi! Yesterday I went bed and left my Slack 10.2 (2.4.29) box running. When I woke up, the computer was "frozen" with a kernel panic. Okk, so I turned it off and on and for my surprise it wouldn't boot up. I get the following error after the "Freeing unused kernel memory" line:

INIT: version 2.84 booting
INIT: cannot execute "/etc/rc.d/rc.S"
INIT: Entering runlevel: 3
INIT: cannot execute "/etc/rc.d/rc.M"
INIT: cannot execute "/sbin/agetty"

...and so on. I'm not sure of what is happening or what can I do to fix it. I'm on Slax now and turning to you guys for help. Anyone got a clue?

Thanks on advance, Daniel

* Pardon me for the rough english, not my native language.
 
Old 02-18-2006, 12:05 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
If you have a rescue disk available, boot from it and run fsck on your HD. It looks like your HD crashed, and needs to be cleaned up. (If possible -- If it was a hard crash, you may need a new disk drive and to restore from your back-up system.)
 
Old 02-18-2006, 02:38 PM   #3
Cdzin
Member
 
Registered: Jul 2003
Location: Campinas-SP, Brazil
Distribution: Slackware
Posts: 61

Original Poster
Rep: Reputation: 15
Hi PTrenholme, thanks for your response. I had to run fsck in force mode. Apparently it did found an error in my hard disk, but even after correcting it I can't boot my machine. Any other guess?

Thanks, Daniel
 
Old 02-18-2006, 05:58 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Slightly off topic, but nonetheless related, I recommend that users who are comfortable with recompiling a kernel enable the SysRq kernel reboot option. I have seen my share of system freezes and with this option enabled I can use the keyboard sequence of Alt-SysRq-r, Alt-SysRq-k, Alt-SysRq-e, Alt-SysRq-i, Alt-SysRq-s, Alt-SysRq-u, Alt-SysRq-b, to safely reboot my box. I seem to recall only one time when this sequence failed to reboot a locked box. Very handy.

Related to the thread, if you possibly can do this, type at the command line touch /etc/forcefsck. That command will create a zero byte file. During the next reboot the Slackware scripts are written to look for this file and will automatically force a file system check on all file systems on the disk.
 
Old 02-19-2006, 06:20 AM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by Cdzin
Hi PTrenholme, thanks for your response. I had to run fsck in force mode. Apparently it did found an error in my hard disk, but even after correcting it I can't boot my machine. Any other guess?

Thanks, Daniel
I'm not sure what you mean by "force mode," but if you mean you asked it to proceed when the file system was not mounted "read only," ignoring the warning that this was likely to kill your drive, you have probably lost the partition contents.

If you followed my suggestion and ran fsck from a Linux rescue CD, then you need to reinstall the damaged file(s) -- the ones listed when fsck reported the error location(s). Those files should be in your dump files, so just restore them.

That assumes that you have been running dump on a regular basis to maintain a backup-up. If you haven't been making regular system backups, then you'll have to try to copy the files from your installation disk(s). Again, you can do this from your rescue CD.
 
Old 02-19-2006, 08:45 PM   #6
Cdzin
Member
 
Registered: Jul 2003
Location: Campinas-SP, Brazil
Distribution: Slackware
Posts: 61

Original Poster
Rep: Reputation: 15
Hi PTrenholme and Woodsman, thanks for your responses. With a bit of luck I solved the problem. I just had to search here on LQ for topics reporting similar errors. I found out that most likely the problem was related to corruption of whether the inittab, the init scripts or the interpreter. After some attempts, turned out that replacing some glib files (which I guess bash needs to run properly) fixed it.

PTrenholme, hehe, actually I don't even know what dump is for. You can see that I haven't been running it regularly. Now I'll learn what it's for and do it. Ohh, by "force mode" I meant when I first ran fsck it reported my filesystem was clean. So I had to force it to check it anyway with the -f tag, I guess.

Woodsman, thanks for the SysRq tip but would you mind explaining to me a bit further how to implement it?

Grateful, Daniel
 
Old 02-21-2006, 08:59 PM   #7
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
Woodsman, thanks for the SysRq tip but would you mind explaining to me a bit further how to implement it?
Try this:

Compiling the 2.4.x Linux Kernel

Check step 21.

I never have tinkered with the 2.6 kernel, so you are on your own for that, although I expect the process is similar.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ZipSlack 10 + LOADLIN give error message(s) --INIT: Cannot execute "/sbin/agetty"-- dhv Slackware 9 07-24-2006 10:02 PM
Booting dies with 'cannot execute "/etc/rc.d/rc.sysinit" ' (Mandrake 9.2) srcosmo Mandriva 2 04-08-2004 11:35 PM
GAIM - "SSL support needed" [Slack] NomDeGuerre Linux - Newbie 10 03-12-2004 01:03 PM
INIT: cannot execute "/etc/rc.d/rc.S" dufferin Slackware 11 11-27-2003 06:32 PM
INIT: cannot execute "/etc/rc.d/rc.S justiceisblind Linux - Newbie 12 08-17-2002 10:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration