View previous topic :: View next topic |
Author |
Message |
mashysteria n00b
Joined: 17 Dec 2007 Posts: 6 Location: South, FL
|
Posted: Mon Dec 17, 2007 10:21 pm Post subject: Filesystem failures on bootup. |
|
|
Hey guys, I'm new to linux and gentoo, and I'm having problems after the first reboot into the new system. I get to "checking root filesystem..." and I get the error "fsck.ext3: no such file or directory while trying to open /dev/root /dev/root: the superblock could not be read or does not describe a correct ext2 filesystem. if the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock" then it gives me "filesystem couldn't be fixed "
Anyone have any suggestions? I thought I followed the handbook correctly, I setup the system exactly like the book said. I guess maybe I overlooked something. Like I said I'm new to gentoo and linux, so I'm trying to figure out what happend and why. I was hopeing maybe I could save the system and not have to format and recompile everything.
Thanks,
the noob. |
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Mon Dec 17, 2007 10:27 pm Post subject: |
|
|
Well, what I would recommend doing is booting up the installation disc and chrooting back into your installation environment. If you don't know how to do that, please just ask. Then I would run fdisk to see your current partition scheme. In that scheme it will tell you each partition and the corresponding filesystems. Please post that output. Again, if you need any help with any of those steps, please just ask. _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
davascript l33t
Joined: 07 Apr 2004 Posts: 618 Location: Pennsylvania
|
Posted: Mon Dec 17, 2007 10:37 pm Post subject: |
|
|
Did you try to run fsck on your root partition? Boot to the livecd and run
or if you have a sata or scsi disk
_________________ Registered Linux User # 451058 |
|
Back to top |
|
|
neiljw Apprentice
Joined: 12 Nov 2007 Posts: 166 Location: Telford, UK
|
Posted: Mon Dec 17, 2007 10:42 pm Post subject: Re: Filesystem failures on bootup. |
|
|
mashysteria wrote: | no such file or directory while trying to open /dev/root /dev/root: the superblock could not be read or does not describe a correct ext2 filesystem. |
It sounds very much like you didn't edit /etc/fstab to define your disk setup. _________________ Be lucky,
Neil |
|
Back to top |
|
|
mashysteria n00b
Joined: 17 Dec 2007 Posts: 6 Location: South, FL
|
Posted: Mon Dec 17, 2007 11:01 pm Post subject: |
|
|
I tried chroot, but it gave the error "chroot: cannot run command '/bin/bash': no such file or directory.
So I tried running Fdisk, here it is,
/dev/hda1 1 5 40131 83 Linux
/dev/hda2 6 68 506047+ 82 Linux swap/ Solaris
/dev/hda3 69 6294 50010345 83 Linux
And fsck /dev/hda3 gives me,
/dev/hda3 clean, 226105/6258688 files, 720611/12502586 blocks |
|
Back to top |
|
|
davascript l33t
Joined: 07 Apr 2004 Posts: 618 Location: Pennsylvania
|
Posted: Mon Dec 17, 2007 11:19 pm Post subject: |
|
|
Boot to the livecd and mount your drives. It could be /etc/fstab. Please post the output of
Code: | cat /mnt/gentoo/etc/fstab |
But I am betting on there is no FS support built into the kernel. Tell us what this does
Code: | grep EXT3 /mnt/gentoo/usr/src/linux/.config |
_________________ Registered Linux User # 451058 |
|
Back to top |
|
|
mashysteria n00b
Joined: 17 Dec 2007 Posts: 6 Location: South, FL
|
Posted: Mon Dec 17, 2007 11:42 pm Post subject: |
|
|
ok so I think I know where I messed up. so far it looks like fstab shows the incorrect fs type. my / is ext2, but the fstab says its ext3. so I think if I change it, it should work maybe? |
|
Back to top |
|
|
mashysteria n00b
Joined: 17 Dec 2007 Posts: 6 Location: South, FL
|
Posted: Mon Dec 17, 2007 11:45 pm Post subject: |
|
|
nevermind, that didn't work, so I think maybe I should start all over again? |
|
Back to top |
|
|
davascript l33t
Joined: 07 Apr 2004 Posts: 618 Location: Pennsylvania
|
Posted: Tue Dec 18, 2007 12:12 am Post subject: |
|
|
Nah dont start over. Post the above commands. _________________ Registered Linux User # 451058 |
|
Back to top |
|
|
Zeerak Apprentice
Joined: 27 Nov 2006 Posts: 239 Location: Aalborg, Denmark
|
Posted: Tue Dec 18, 2007 1:18 am Post subject: |
|
|
i'm having the same issues, i'll look at it and try what you guys suggested as well. |
|
Back to top |
|
|
mashysteria n00b
Joined: 17 Dec 2007 Posts: 6 Location: South, FL
|
Posted: Tue Dec 18, 2007 3:27 am Post subject: |
|
|
ok so here is what I got to he above code:
cat /etc/fstab
<fs> <mountpoint> <type> <opts> <dump/pass>
/dev/boot /boot ext2 defaults,noatime 1 2
/dev/root / ext2 noatime 0 1
/dev/swap none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,user 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
grep EXT3 /usr/src/linux/.config
config_ext3_fs=y
config_ext3_fs_xattr=y
config_ext3_fs_posix_acl=y
#config_ext3_fs_security is not set
#config_ext3_fs_xip is not set
Anyway of telling what I messed up? |
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Tue Dec 18, 2007 3:40 am Post subject: |
|
|
Hi,
Your fstab is wrong. It needs to be something like this:
Code: |
/dev/hda1 /boot ext2 defaults,noatime 1 2
/dev/hda3 / ext3 noatime 0 1
/dev/hda2 none swap sw 0 0
|
Basically, you need to fill in the actual partitions for /boot, /root, and /swap. That should take care of the problem. _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
mashysteria n00b
Joined: 17 Dec 2007 Posts: 6 Location: South, FL
|
Posted: Tue Dec 18, 2007 3:48 am Post subject: |
|
|
thankyou all very much for your help, I was able to correct the problems and login. Now its time to start compiling and getting everything else working. I'm sure I'll need more help. |
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Tue Dec 18, 2007 4:12 am Post subject: |
|
|
Well please don't hesitate to ask for help if you need it. That's why we're here. _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
|