LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 09-24-2004, 02:08 PM   #1
masch
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Rep: Reputation: 0
Unhappy fsck fails during boot


I'm running a small SuSe 8.1 box as a smaba server. While backing up to a USB HDD, I ran into a brief power failure.
the root fs is on /hda2, the backup drive is on /sda1 and is mounted on
/usr/backup. Both are reiserfs

When booting now, i get:

fsck failed. please repair manually and reboot.
the root fs is currently monted as read-only


if I run fsck manually, the root fs checks OK, but it refuses to read /sda1, with following error:
"could not open filesystem"

I suspect, the usb fs driver has not woken up or connected to the drive yet.

If I keep the USB drive off or disconnected I have exactly the same results.

What I would like to do is to mainly stop fsck from trying to check /sda1, so I can get the server back online. I can deal with the external HDD etc later.
Is there a config file where the fsck filesystems for boot are set?

fstab, by the way, as far as I can see is unchanged, the line for /sda1 is:

/dev/sda1 /usr/backup reiserfs defaults 1 2

Any help is greatly appreciated.
 
Old 09-24-2004, 05:23 PM   #2
parados
LQ Newbie
 
Registered: Sep 2004
Distribution: Suse 9.1
Posts: 4

Rep: Reputation: 0
I had a similar problem when trying to get USB to work properly in Suse 9.1. (I still haven't solved the USB plug and unplug completely) The problem was I allowed Suse to choose /usr as my default mnt point. It caused an fsck failure on restart.

Eliminate all references to sda1 in your fstab and see if that works

cat /etc/fstab
mv /etc/fstab /etc/fstab.bk
head -n 9 /etc/fstab.bk > /etc/fstab
(where 9 is the number of good lines before sda1 reference.)
 
Old 09-24-2004, 07:24 PM   #3
cincindie
Member
 
Registered: Jul 2004
Location: Zinzinnati, OH
Distribution: RH, FC 1-6, F 7-21, Debian, LinuxPPC, Knoppix, Ubuntu, Yellow Dog
Posts: 176

Rep: Reputation: 31
Repair the root filesystem the first time; reboot, and when you come to the part about the system wanting to check your filesystem due to an unclean shutdown, just ignore the warning. It'll move on to the next step after 5 seconds. Once you are in, you can always unmount your sda1, and run fsck on that.
 
Old 09-25-2004, 10:38 AM   #4
masch
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by parados
Eliminate all references to sda1 in your fstab and see if that works
cat /etc/fstab
mv /etc/fstab /etc/fstab.bk
head -n 9 /etc/fstab.bk > /etc/fstab
(where 9 is the number of good lines before sda1 reference.)
It worked.
Well sort of....
deleting /dev/sda1 from fstab solved the startup problem and I could boot the system again without any problems.
I started rummaging around a little to find out what has occured. Apparently /sda1 was set to be fsck-ed in fstab. Once this was removed, all was well.

Maybe I shold have read up on the fstab structure beforehand. Thanks a lot guys.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
PLEASE HELP: fsck.reiserfs --rebuild-sb /dev/md0 fails ofdofd Linux - General 2 10-26-2005 02:18 PM
SuSE 9.2, fsck fails during startup imemyself SUSE / openSUSE 2 03-21-2005 11:00 PM
raid 1 problems fedora core 3 - fsck fails creeble Linux - Software 4 02-08-2005 11:47 AM
automatic fsck on boot. fsck errors. nixel Slackware 1 05-17-2004 07:51 AM
fsck fails to mount filesystem GoatKing Linux - Software 6 01-26-2004 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:38 PM.

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