Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 12-15-2003, 07:18 PM   #1
Registered: Sep 2003
Posts: 77

Rep: Reputation: 15
Need urgent help. Unable to boot.

I am trying to help a friend boot his Slackware computer. We are currently trying things and looking for his boot disc, but I'm asking here in the mean time. When attempting to boot. This is seen:

/etc/rc.d/rc.S: line 156: sbin/fsck : Permission denied
/etc/rc.d/rc.S: line 161: sbin/mount : Permission denied
/etc/rc.d/rc.S: line 164: sbin/rm : Permission denied
/etc/rc.d/rc.S: line 165: sbin/rm : Permission denied
/etc/rc.d/rc.S: line 169: sbin/touch : Permission denied
/etc/rc.d/rc.S: line 170: sbin/chown : Permission denied
/etc/rc.d/rc.S: line 171: sbin/chmod : Permission denied

etc. etc. etc.
Then everything freezes. An Internet search suggests that he has made a drive mountable which should not be.

Anything at all appreciated.

Old 12-15-2003, 07:46 PM   #2
Registered: Sep 2003
Posts: 77

Original Poster
Rep: Reputation: 15
OK, I've gotten in using the install CD.

For anyone needing to get this far in the future, this is what I did.

Boot from install CD w/bare.i

mount /dev/hdb1 /mnt -a #boot all devices in fstab
cd mnt #enter the linux partition

Now, what do I edit? I can post the contents of whatever, just ask.

edit: here are contents of fstab:

/dev/hdb1 __ / __ reiserfs __ defaults, user __ 1 1
/dev/hda1 __ /fat-c __ vfat __ defaults, user __ 1 0
/dev/cdrom __ /mnt/cdrom __ iso9660 __ noauto,owner,ro,user __ 0 0
/dev/fd0 __ /mnt/floppy __ auto __ noauto, owner, user __ 0 0
devpts __ /dev/pts __ devpts __ gid=5,mode=260 __ 0 0
proc __ /proc __ proc __ defaults __ 0 0


Last edited by Shay; 12-15-2003 at 08:04 PM.
Old 12-15-2003, 08:08 PM   #3
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
Show us /mnt/etc/fstab
assuming that it's in hdb1 and not some other partition on that disk
Old 12-15-2003, 09:01 PM   #4
Registered: Sep 2003
Posts: 77

Original Poster
Rep: Reputation: 15
I edited my second post and included it. Thanks.

Old 12-15-2003, 10:44 PM   #5
Registered: Aug 2002
Posts: 23,683

Rep: Reputation: 5186Reputation: 5186Reputation: 5186Reputation: 5186Reputation: 5186Reputation: 5186Reputation: 5186Reputation: 5186Reputation: 5186Reputation: 5186Reputation: 5186
I don't use slack but don't think you should have user as an option for your root directory. Just make it defaults
Old 12-15-2003, 11:37 PM   #6
Registered: Sep 2003
Posts: 77

Original Poster
Rep: Reputation: 15
MichaelK, thank you very much. That was indeed the problem. I had just guessed it and was going to post here. Zaphodiv's response let me know that it was likely a problem with fstab, so we tried everything and eventually got it.

Thank you once again.
Old 12-16-2003, 01:17 AM   #7
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 34
mount /dev/hdb1 /mnt -a #boot all devices in fstab
Mounting with the -a option here will only mount the cd's fstab

Here's a better way to get out of the cd's filesystem and into your own, using a live-cd to boot with.
1. Boot with the cd (or floppy/cd combo if necessary), logging in as root.
2. Create a separate directory to mount your own root partition, such as:
      mkdir /mnt/linux
3. Mount your root partition to the newly created directory:
      mount /dev/hdxx /mnt/linux
   replacing the xx with the partition to be mounted (b1 in your case).
4. Mount the proc filesystem to /mnt/linux/proc:
      mount -t proc proc /mnt/linux/proc
5. Chroot into your mounted root partition:
      chroot /mnt/linux /bin/bash
You now have full access to the system you were previously locked out of and as the root user. This includes access to all the apps and stufff you've installed not found on the cd (even the live-cd is somewhat limited in its apps). Any chages made will apply to your setup and not to the cd.

Once you're done making any needed changes, you can type 'exit' to return to the cd's filesystem.

NOTE: If you have separate partitions for /home, /usr, etc., you can mount them after chrooting to your root partition.

Last edited by thegeekster; 12-16-2003 at 01:30 AM.
Old 12-17-2003, 01:09 PM   #8
Registered: Sep 2003
Posts: 77

Original Poster
Rep: Reputation: 15
That's good stuff, thegeekster. That post is going into my hard-copy folder when I get home.



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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
boot sector and lilo collapse !!!!! URGENT URGENT URGEN !!!!! frelihm Linux - Software 21 12-02-2009 11:21 AM
URGENT - BOOT UP in Kernel and not KDE busaussie Linux - General 18 06-11-2005 11:46 AM
Urgent Help Fail to boot satimis Red Hat 2 12-04-2003 05:06 PM
URGENT: Grub Boot Problem thebear Linux - General 5 09-16-2003 11:02 PM
Urgent !!! Linux cannot boot up erwinba Linux - Software 1 08-20-2001 06:42 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:41 PM.

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