LinuxQuestions.org
Visit Jeremy's Blog.
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-30-2003, 07:50 PM   #1
Dakota Mike
LQ Newbie
 
Registered: Aug 2003
Location: Oak Ridge, TN
Distribution: Slack 10.2+
Posts: 12

Rep: Reputation: 0
/sbin/fsck: no such file or directory??


Scenario: old K6-III pc, installed 2 HDs (both are reiserfs; hda: 1 partition, root, 2GB; hdb: 2 partitions, swap & home, 3 GB). Fresh install of Slack 9.1 went very smoothly, reboots nice, etc. Lilo is on MBR (assumably of hda, since it didn't ask me). Compiled new kernel, updated lilo, ran /sbin/lilo, reboot. Lilo executes fine, boot sequence is running till I get:

/etc/rc.d/rc.S: line 38: /sbin/fsck: No such file or directory.

Then it lets me get into a single-user shell for system maintenance. What happened? I've run a complete install twice, with identical results after the new compile. I assume something is happening with lilo getting written again.

Thanks!

Dakota Mike
 
Old 11-30-2003, 08:17 PM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306

Rep: Reputation: 66
check in /sbin and see if the file system checkers are actually there.
like these. you could change your entry in rc.S to point to the correct one, if
you can get sbin mounted. you may have to use a rescue disk.
you could also edit fstab so it doesn't try to check the drive for now by
change the last 2 1's in the fstab line to 0's. you'll need to have the drive
mounted rw to do this.
maybe a line like
mount /dev/hda -o remount,rw might do it.

fsck fsck.ext3 fsck.minix fsck.xfs
fsck.ext2 fsck.jfs fsck.msdos
 
Old 12-01-2003, 08:30 PM   #3
Dakota Mike
LQ Newbie
 
Registered: Aug 2003
Location: Oak Ridge, TN
Distribution: Slack 10.2+
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks, whansard. /sbin contained several file system checkers, including fsck.reiserfs. My /etc/rc.d/rc.S looked like this:

# Check the root filesystem:
if [ ! $READWRITE = yes ]; then
RETVAL=0
if [ ! -r /etc/fastboot ]; then
echo "Checking root filesystem:"
/sbin/fsck $FORCEFSCK -C -a /
RETVAL=$?

I changed the /sbin/fsck to /sbin/fsck.reiserfs & it boots fine now. My question is why? Another Slack box I have reads the same as above (i.e. no specific fsck listed) & it boots fine. Is it an issue because of the 2nd hard drive?

Thanks
 
Old 12-01-2003, 09:48 PM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306

Rep: Reputation: 66
reiserfs doesn't get checked. the filesystem checker is really just for
emergencies, and your system, i think, is trying to check anyway.
maybe your fstab settings are wrong and your reiserfs filesystem is set
to be checked, when it shouldn't. i don't know.
 
  


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
/sbin/rc: line 271: /sbin/devfsd: No such file or directory Alexander.s Linux - General 3 04-22-2005 05:44 PM
Want2use /sbin cmds undr non-root account w/o sudo. Is it safe 2 add /sbin 2 my PATH? kornerr Linux - General 4 02-25-2005 10:29 AM
/usr/sbin/update-gdkpixbuf-loaders: No such file or directory ulaoulao Linux - Software 0 10-17-2004 07:44 PM
What file contains auto-mount for fsck cbjhawks Linux - Software 1 09-18-2003 08:02 PM
/sbin/xlogin file not found minor Linux - General 0 05-09-2001 05:37 AM

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

All times are GMT -5. The time now is 09:20 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