LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-26-2003, 06:42 PM   #1
dufferin
Member
 
Registered: Nov 2003
Location: Mt Dufferin
Distribution: Slackware 12.2
Posts: 72

Rep: Reputation: 15
Unhappy INIT: cannot execute "/etc/rc.d/rc.S"


What I did:
Added a few drives to the fstab file. Restarted fine, new drives there.
I only added a few lines in the middle of the script.
(I left the top and bottom portions as they were)

Went for a reboot and wondered why it wasn't restarting.
I start from bootdisk(had bad luck with LILO years ago)

Noticed it stopped here as it was closing down:

------------------------snip----------------------------
INIT: unable to do something(can't remember exactly what it was)
------------------------snip----------------------------

Soooo, I hit the reset button . . .
Now my SlackWare box halts during start-up!

These are the last few lines dispayed:
------------------------snip----------------------------
Freeing unused kernel memory: 116k freed
INIT: version 2.84 booting
INIT: cannot execute "/etc/rc.d/rc.S"
INIT: Entering run level: 3
INIT: Cannot execute "/etc/rc.d/rc.M"
------------------------snip----------------------------

I reversed the changes to fstab but it made no dif.
Could this have caused the problem?

I can get into the box with the Slackware Live CD,
but don't know what to do.
I tried a different bootdisk with no luck.

Any ideas?


Thanks, John.
Slackware 9.1 / P3-800 / 512RAM / 120GIG
 
Old 11-26-2003, 07:02 PM   #2
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
Re: INIT: cannot execute "/etc/rc.d/rc.S"

Quote:
Originally posted by dufferin
What I did:
Added a few drives to the fstab file. Restarted fine, new drives there.
I only added a few lines in the middle of the script.
(I left the top and bottom portions as they were)
Uh... You'll probably need to post your fstab here. Can you do that after booting from your Live CD?

What did you change after the .. Restarted fine, new drives there. ... ?

Last edited by itsjustme; 11-26-2003 at 07:04 PM.
 
Old 11-26-2003, 07:15 PM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Sounds like you somehow chmod'ed the scripts to be non-executable - or deleted them, though I'd expect a different message. I agree about posting fstab - I don't see how a plain addition could be responsible for the problem. Post up 'ls -l /etc/rc.d' while you're at it?
 
Old 11-26-2003, 07:53 PM   #4
dufferin
Member
 
Registered: Nov 2003
Location: Mt Dufferin
Distribution: Slackware 12.2
Posts: 72

Original Poster
Rep: Reputation: 15
Tanks for the responses!
I'm away from home right now . . . can't post the files till 23:00

If I accidentally chmod'ed fstab to be non-executable
would I get the same INIT message?

I remember getting kicked out of MC after pressing F4.
Does pressing F4 do anything to a file?

John.
 
Old 11-26-2003, 09:23 PM   #5
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Well, it should bring it up for editing, but doesn't do anything by itself. And fstab isn't really a script and wouldn't be executable anyway - it's just a data file that's read in by lilo, init, mount, whatever.
 
Old 11-27-2003, 03:04 AM   #6
dufferin
Member
 
Registered: Nov 2003
Location: Mt Dufferin
Distribution: Slackware 12.2
Posts: 72

Original Poster
Rep: Reputation: 15
Restarted fine new drives there, then I made a few more changes in fstab.
Below is the original fstab

/dev/hda15 / ext2 defaults 1 1
/dev/hda1 /fat-c vfat defaults 1 0
/dev/hda12 /fat-c vfat defaults 1 0
/dev/hdb1 /fat-d vfat defaults 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0


Here's the one I mucked with:
/dev/hda15 / ext2 defaults 1 1
/dev/hda1 /fat-c vfat defaults 1 0
/dev/hda5 /fat-e vfat defaults 1 0
/dev/hda6 /fat-f vfat defaults 1 0
/dev/hda7 /fat-g vfat defaults 1 0
/dev/hda8 /fat-h vfat defaults 1 0
/dev/hda9 /fat-i vfat defaults 1 0
/dev/hda10 /fat-j vfat defaults 1 0
/dev/hda11 /fat-k vfat defaults 1 0
/dev/hda12 /fat-l vfat defaults 1 0
/dev/hda13 /fat-m vfat defaults 1 0
/dev/hda14 /fat-n vfat defaults 1 0
/dev/hdb1 /fat-d vfat defaults 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0


How do you copy/paste with Linux?
I got the below no prob, but how to post it?
'ls -l /etc/rc.d'

Thanks again,
John.
 
Old 11-27-2003, 08:25 AM   #7
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
You just have a single Linux partition? And that's unchanged. And none of the vfat's seem to be clobbering it. So I can't see anything wrong with the fstab. (Lotta partitions there - might have missed something but nothing relevant to Linux, I don't think.)

As far as copying and pasting, assuming you're using a term in X, you should just be able to click and drag the term area, then middle click in a browser window. If nothing else, do 'ls -l > file' and copy it from a text editor. Sometimes the clipboard and other apps get confused.
 
Old 11-27-2003, 11:46 AM   #8
dufferin
Member
 
Registered: Nov 2003
Location: Mt Dufferin
Distribution: Slackware 12.2
Posts: 72

Original Poster
Rep: Reputation: 15
Had no idea you could do that click and drag thing! I love it!


How does this look?

bash-2.05b# ls -l /etc/rc.d
total 90
-rwxr--r-- 1 root root 2629 Sep 10 17:50 livecd_init
-rwxr--r-- 1 root root 1423 Sep 10 17:50 mount_functions
lrwxrwxrwx 1 root root 4 Sep 10 17:50 rc.0 -> rc.6
-rwxr-xr-x 1 root root 893 Sep 10 17:50 rc.4
-rwxr-xr-x 1 root root 4690 Sep 10 17:50 rc.6
-rwxr-xr-x 1 root root 2013 Sep 10 17:50 rc.K
-rwxr-xr-x 1 root root 6346 Sep 10 17:50 rc.M
-rwxr-xr-x 1 root root 2412 Sep 10 17:50 rc.S
-rwxr-xr-x 1 root root 466 Sep 10 17:50 rc.acpid
-rwxr-xr-x 1 root root 347 Sep 10 17:50 rc.alsa
-rw-r--r-- 1 root root 3949 Sep 10 17:50 rc.cups
-rwxr-xr-x 1 root root 1148 Sep 10 17:50 rc.gpm
-rwxr-xr-x 1 root root 1160 Sep 10 17:50 rc.hotplug
-rwxr-xr-x 1 root root 3694 Sep 10 17:50 rc.inet1
-rw-r--r-- 1 root root 865 Sep 10 17:50 rc.inet1.conf
-rwxr-xr-x 1 root root 6845 Sep 10 17:50 rc.inet2
-rwxr-xr-x 1 root root 113 Sep 10 17:50 rc.local
-rw-r--r-- 1 root root 580 Sep 10 17:50 rc.lprng
-rwxr-xr-x 1 root root 25454 Sep 10 17:50 rc.modules
-rwxr-xr-x 1 root root 2449 Sep 10 17:50 rc.nfsd
-rwxr-xr-x 1 root root 4790 Sep 10 17:50 rc.pcmcia
-rwxr-xr-x 1 root root 686 Sep 10 17:50 rc.sendmail
-rwxr-xr-x 1 root root 2895 Sep 10 17:50 rc.serial
-rwxr-xr-x 1 root root 1222 Sep 10 17:50 rc.sshd
-rwxr-xr-x 1 root root 861 Sep 10 17:50 rc.syslog
-rwxr-xr-x 1 root root 1740 Sep 10 17:50 rc.sysvinit
bash-2.05b#



Thanks again,
John.
 
Old 11-27-2003, 11:56 AM   #9
dufferin
Member
 
Registered: Nov 2003
Location: Mt Dufferin
Distribution: Slackware 12.2
Posts: 72

Original Poster
Rep: Reputation: 15
That last one was from the Slackware LiveCD
Sorry about that.

Here's the correct one from Slackware 9.1

bash-2.05b# ls -l /mnt/hda15/etc/rc.d
total 180
lrwxrwxrwx 1 root root 4 Nov 24 08:22 rc.0 -> rc.6
-rwxr-xr-x 1 root root 893 Jan 29 2003 rc.4
-rwxr-xr-x 1 root root 4782 Sep 12 05:29 rc.6
-rwxr-xr-x 1 root root 2013 Feb 27 2003 rc.K
-rwxr-xr-x 1 root root 7634 Sep 15 18:07 rc.M
-rwxr-xr-x 1 root root 8312 Aug 28 20:21 rc.S
-rwxr-xr-x 1 root root 466 Aug 28 06:57 rc.acpid
-rwxr-xr-x 1 root root 1514 Sep 4 22:09 rc.alsa
-rw-r--r-- 1 root root 1032 Feb 2 2003 rc.atalk
-rw-r--r-- 1 root root 1031 Sep 21 19:07 rc.bind
-rw-r--r-- 1 root root 3949 Aug 25 23:42 rc.cups
-rwxr-xr-x 1 root root 119 Feb 27 2003 rc.font.sample
-rwxr-xr-x 1 root root 1156 Nov 24 17:02 rc.gpm
-rwxr-xr-x 1 root root 1160 Mar 28 2003 rc.hotplug
-rwxr-xr-x 1 root root 401 Mar 5 2003 rc.httpd
-rwxr-xr-x 1 root root 4038 Sep 21 20:34 rc.inet1
-rw-r--r-- 1 root root 865 Nov 24 08:45 rc.inet1.conf
-rwxr-xr-x 1 root root 4419 Sep 21 18:35 rc.inet2
-rwxr-xr-x 1 root root 497 Sep 12 03:27 rc.inetd
-rw-r--r-- 1 root root 1924 Sep 13 23:10 rc.ip_forward
-rwxr-xr-x 1 root root 113 Oct 2 1995 rc.local
-rw-r--r-- 1 root root 580 Sep 12 00:21 rc.lprng
-rwxr-xr-x 1 root root 25453 Nov 26 07:30 rc.modules
-rw-r--r-- 1 root root 2259 Sep 19 00:22 rc.mysqld
-rwxr-xr-x 1 root root 2449 Aug 27 03:51 rc.nfsd
-rwxr-xr-x 1 root root 4790 Sep 18 21:56 rc.pcmcia
-rw-r--r-- 1 root root 905 Sep 13 23:38 rc.portmap
-rwxr-xr-x 1 root root 728 Apr 7 2003 rc.samba
-rwxr-xr-x 1 root root 687 Jun 4 2002 rc.sendmail
-rwxr-xr-x 1 root root 2895 Aug 26 00:05 rc.serial
-rwxr-xr-x 1 root root 1222 Sep 23 18:14 rc.sshd
-rwxr-xr-x 1 root root 861 May 29 2002 rc.syslog
-rwxr-xr-x 1 root root 1740 Sep 11 1999 rc.sysvinit
-rwxr-xr-x 1 root root 2323 Sep 22 02:30 rc.yp


Thanks again,
John.
 
Old 11-27-2003, 12:42 PM   #10
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Hm. Looks good to me. I would think everything's okay with inittab but might want to check it out - I mean, it sounds like it's trying to do what it should. I'm running out of ideas. You say you were messing with fstab - is this because you did some repartitioning or something? I'm beginning to think it's either something obvious around the kernel area that I'm just not knowledgeable about or that something prior to this led up to it - like I say, I don't think it's fstab, itself, and most things seem to be there and ready to go.

I've got to do the turkey day meal thing now, but I'll check back by later.
 
Old 11-27-2003, 07:00 PM   #11
dufferin
Member
 
Registered: Nov 2003
Location: Mt Dufferin
Distribution: Slackware 12.2
Posts: 72

Original Poster
Rep: Reputation: 15
I done gived up . . .
tried everything I could to save it.

Reloaded the thing, all is fine in again . . .

Thank you all for the effort!
John.
 
Old 11-27-2003, 07:32 PM   #12
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
No problem - wish I could have been more useful. Glad everything's good now, one way or the other.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:02 PM
commands "init" and "modprobe" not working Diagmato Fedora 2 07-23-2005 12:44 AM
Bootup error " INIT: Cannot execute .... Sifvion Slackware 2 10-02-2003 12:49 PM
RH "null" beta system freezes right after printing "INIT" markus1982 Linux - Hardware 0 09-09-2002 04:31 PM
INIT: cannot execute "/etc/rc.d/rc.S justiceisblind Linux - Newbie 12 08-17-2002 11:01 PM


All times are GMT -5. The time now is 04:02 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration