LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-26-2004, 08:57 AM   #1
GoatKing
LQ Newbie
 
Registered: Nov 2003
Location: Rochester, NY
Distribution: Gentoo 1.4
Posts: 27

Rep: Reputation: 15
fsck fails to mount filesystem


hi all

I just installed Gentoo linux 1.4 and at boot up, run into an error:

checking root filesystem... [!!]
fsck 1.33
Failed to open filesystem
fsck recommends running with --rebuild-sb, etc, etc
unable to rebuild filesystem

fsck exited with signal 6 on dev/ROOT

After that I enter the root password to "manage" the problem, but the root partition is read-only. Does anyone know what could be causing this? I have the Gentoo Live cd, so if necessary I can get around the read-only problem. Here is my (abridged, without the periods) /etc/fstab:

<fs>.............<mount>..........<type>...........<opt>.....................<dump/pass>
/dev/BOOT...../boot..............ext3...............noauto,noatime.........1...1
/dev/ROOT...../.....................reiserfs...........notail,noatime...........0...0
/dev/SWAP....none...............sw..................swap.........................0...0

I've already tried rebuilding the superblock and checking with fsck, no luck there, and I'm sure I the kernel is configured to support ReiserFS, I've already re-compiled with the help of the live CD. I don't really understand the workings of fstab, I guess thats the problem. The boot partition of Gentoo is on hdb1, swap on hdb2, and root on hdb3.

Thanks in advance for your help.

Last edited by GoatKing; 01-26-2004 at 09:00 AM.
 
Old 01-26-2004, 09:15 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
The only time I have seen in fsck message like that was when somebody was running the wrong fsck on a partition. You might want to investigate that.

Btw, is there a reason why your /boot is listed as noauto? I would think you would want that mounted at boot.
 
Old 01-26-2004, 09:40 AM   #3
GoatKing
LQ Newbie
 
Registered: Nov 2003
Location: Rochester, NY
Distribution: Gentoo 1.4
Posts: 27

Original Poster
Rep: Reputation: 15
I made that little boot change, not sure what I was thinking there. The problem seems to be with fsck, it dies, and makes everything else stop booting. I know the filesystem is fine, but fsck disagrees. How can I modify and tinker around with fsck? Where is it stored?
 
Old 01-26-2004, 09:47 AM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
/sbin is where fsck is stored.
 
Old 01-26-2004, 06:28 PM   #5
GoatKing
LQ Newbie
 
Registered: Nov 2003
Location: Rochester, NY
Distribution: Gentoo 1.4
Posts: 27

Original Poster
Rep: Reputation: 15
Is there a way to disable fsck's auto-check when booting?
 
Old 01-26-2004, 09:13 PM   #6
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Put a

0

in the 6th field of the relevant /etc/fstab line.

In general:

0 = no check
1 = check filesystem first (typically root partition)
2 = check other Linux filesystems

Last edited by Skyline; 01-26-2004 at 09:16 PM.
 
Old 01-26-2004, 09:41 PM   #7
mholtz
LQ Newbie
 
Registered: Jan 2004
Location: Ohio, USA
Distribution: Gentoo 1.4
Posts: 1

Rep: Reputation: 0
Need device names in fstab

Looks to me like you forgot to modify your /etc/fstab before you booted Gentoo from the hard disk. Put the CD back in, boot it, then mount the filesystem manually (just like you did during installation) in /mnt/gentoo. With that done you can edit /mnt/gentoo/etc/fstab.

The entries "BOOT", "ROOT", and "SWAP" need to be replaced with the actual device names. For example, on my system, BOOT is hdc1, ROOT is hdc4, and SWAP is hdc3. You can always use fdisk if you forgot your partition information.

Regards,

--
Matt
 
  


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
fsck.ext3: Attempt to read block from filesystem trouble dolphans1 Mandriva 12 10-07-2009 04:30 AM
fsck on root filesystem without reboot? Barx Linux - General 3 03-29-2005 03:55 AM
SuSE 9.2, fsck fails during startup imemyself SUSE / openSUSE 2 03-21-2005 11:00 PM
fsck fails during boot masch Linux - General 3 09-25-2004 10:38 AM
Repair a filesystem ...fsck is it??????? hrg Linux - General 3 07-24-2004 07:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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