Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
filesystem check
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
andyfaeglasgow
Apprentice
Apprentice


Joined: 09 Sep 2004
Posts: 170

PostPosted: Fri Sep 10, 2004 3:23 pm    Post subject: filesystem check Reply with quote

Whilst booting for the first time, a notice telling me that something was wrong with the root filesystem appears then it offers me the chance to fix as root, or continue to log in.

I thought the problem may be that I specified the wrong filesystem for the root device in etc/fstab, so I made the appropriate change in this file, then rebooted.

However, the same notice appeared again. When I checked fstab, it was there with the modifications I had made after the first boot up.

Can you suggest anything else that should be changed before rebooting?

andy
Back to top
View user's profile Send private message
inode77
Veteran
Veteran


Joined: 20 Jan 2004
Posts: 1303
Location: Heart of Europe

PostPosted: Fri Sep 10, 2004 3:26 pm    Post subject: Reply with quote

Post your "fdisk -l /dev/hda" and your grub.conf and we'll try to figure it out. (I think you set one of your device pathes wrong. Or the root fs entry. In grub (hd0,4) points to /dev/hda5.

Post update: And please post that error exactly please.


Last edited by inode77 on Fri Sep 10, 2004 3:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
Minox
Apprentice
Apprentice


Joined: 12 Apr 2004
Posts: 188
Location: Germany / Munich

PostPosted: Fri Sep 10, 2004 3:26 pm    Post subject: Reply with quote

Hi,
what filesystem do you use? Generally you could try a fsck.ext3 /dev/hdax (e.g).
Kind regards,
_________________
:!: proud to be 100% M$ free :!:
Back to top
View user's profile Send private message
andyfaeglasgow
Apprentice
Apprentice


Joined: 09 Sep 2004
Posts: 170

PostPosted: Fri Sep 10, 2004 7:54 pm    Post subject: Reply with quote

Hi inode,

Error meassage:
fsck: No such file.../dev/ROOT/dev/ROOT
The superblock could noto be read or does not describe correct ext filesystem


grub.conf:
Code:

title=Gentoo Linux 2.4.26-r6
root (hd0,0)
kernel /kernel-2.4.26-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3
initrd /initrd-2.4.26-gentoo-r6


fdisk -l /dev/hda:
Code:

/dev/hda1  *                                linux
/dev/hda2                                    linux swap
/dev/hda3                                    linux
Back to top
View user's profile Send private message
inode77
Veteran
Veteran


Joined: 20 Jan 2004
Posts: 1303
Location: Heart of Europe

PostPosted: Fri Sep 10, 2004 8:00 pm    Post subject: Reply with quote

Ok this is easy fixed, you just forgot to adapt your /etc/fstab to your situation. Boot the livecd once more, mount the /dev/hda to /mnt/gentoo and edit the fstab file. It should look similar to this. (Adapted the values for you, so it should work fine.)
Code:
# <fs>                  <mountpoint>            <type>          <opts>                                  <dump/pass>

# Local FS that span an entire device
/dev/hda2               none                    swap            sw                                      0 0
/dev/hda1               /boot                   ext3            noauto,noatime                          1 1
/dev/hda3               /                       ext3            noatime                                 0 0 
/dev/cdroms/cdrom0      /mnt/cdrom              iso9660         noauto,ro,user                          0 0

# Local special system FS
none                    /proc                   proc            defaults                                0 0
none                    /dev/shm                tmpfs           defaults                                0 0


P.S.: To open the fstab file type nano -w /mnt/gentoo/etc/fstab and not /etc/fstab
Back to top
View user's profile Send private message
andyfaeglasgow
Apprentice
Apprentice


Joined: 09 Sep 2004
Posts: 170

PostPosted: Fri Sep 10, 2004 11:41 pm    Post subject: Reply with quote

Hi inode,

Yes that's what I thought too but when I tried it, I came up with the same error.

Did you notice how it said /dev/ROOT/dev/ROOT in the error message? Is that where it should be looking for the rooroot?
Back to top
View user's profile Send private message
thechris
Veteran
Veteran


Joined: 12 Oct 2003
Posts: 1203

PostPosted: Fri Sep 10, 2004 11:47 pm    Post subject: Reply with quote

and you are 100% sure this is /mnt/gentoo/etc/fdisk (HDD) and not /etc/fdisk (liveCD)?
Back to top
View user's profile Send private message
andyfaeglasgow
Apprentice
Apprentice


Joined: 09 Sep 2004
Posts: 170

PostPosted: Fri Sep 10, 2004 11:52 pm    Post subject: Reply with quote

110%
Back to top
View user's profile Send private message
inode77
Veteran
Veteran


Joined: 20 Jan 2004
Posts: 1303
Location: Heart of Europe

PostPosted: Fri Sep 10, 2004 11:58 pm    Post subject: Reply with quote

Maybe genkernel messed something up.....
When the kernel should switch over to real_root, that's where I guess something gone wrong. (Just guessing....)

Try to compile a minimal kernel by hand (just basic support stuff and fs drivers no initrd). Then add it to /boot adapt grub.conf and try to boot with it.
Back to top
View user's profile Send private message
Minox
Apprentice
Apprentice


Joined: 12 Apr 2004
Posts: 188
Location: Germany / Munich

PostPosted: Sat Sep 11, 2004 6:57 am    Post subject: Reply with quote

Hi,
He must have edited the wrong fstab.
inode77 wrote:
Ok this is easy fixed, you just forgot to adapt your /etc/fstab to your situation. Boot the livecd once more, mount the /dev/hda to /mnt/gentoo and edit the fstab file. It should look similar to this. (Adapted the values for you, so it should work fine.)

That would be the solution i guess. The error message is apparently provoked by a wrong fstab/mtab. Maybe andyfaeglasgow could perform these actions:
Code:
# Boot from live cd
# mount /dev/hdax /mnt/gentoo/
# cat /mnt/gentoo/etc/fstab

Show us the content of the file.
Kind regards,
_________________
:!: proud to be 100% M$ free :!:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum