Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Filesystem failures on bootup.
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
mashysteria
n00b
n00b


Joined: 17 Dec 2007
Posts: 6
Location: South, FL

PostPosted: Mon Dec 17, 2007 10:21 pm    Post subject: Filesystem failures on bootup. Reply with quote

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
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2605

PostPosted: Mon Dec 17, 2007 10:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
davascript
l33t
l33t


Joined: 07 Apr 2004
Posts: 618
Location: Pennsylvania

PostPosted: Mon Dec 17, 2007 10:37 pm    Post subject: Reply with quote

Did you try to run fsck on your root partition? Boot to the livecd and run
Code:
fsck /dev/hda3

or if you have a sata or scsi disk
Code:
fsck /dev/sda3

_________________
Registered Linux User # 451058
Back to top
View user's profile Send private message
neiljw
Apprentice
Apprentice


Joined: 12 Nov 2007
Posts: 166
Location: Telford, UK

PostPosted: Mon Dec 17, 2007 10:42 pm    Post subject: Re: Filesystem failures on bootup. Reply with quote

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
View user's profile Send private message
mashysteria
n00b
n00b


Joined: 17 Dec 2007
Posts: 6
Location: South, FL

PostPosted: Mon Dec 17, 2007 11:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
davascript
l33t
l33t


Joined: 07 Apr 2004
Posts: 618
Location: Pennsylvania

PostPosted: Mon Dec 17, 2007 11:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
mashysteria
n00b
n00b


Joined: 17 Dec 2007
Posts: 6
Location: South, FL

PostPosted: Mon Dec 17, 2007 11:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
mashysteria
n00b
n00b


Joined: 17 Dec 2007
Posts: 6
Location: South, FL

PostPosted: Mon Dec 17, 2007 11:45 pm    Post subject: Reply with quote

nevermind, that didn't work, so I think maybe I should start all over again?
Back to top
View user's profile Send private message
davascript
l33t
l33t


Joined: 07 Apr 2004
Posts: 618
Location: Pennsylvania

PostPosted: Tue Dec 18, 2007 12:12 am    Post subject: Reply with quote

Nah dont start over. Post the above commands.
_________________
Registered Linux User # 451058
Back to top
View user's profile Send private message
Zeerak
Apprentice
Apprentice


Joined: 27 Nov 2006
Posts: 239
Location: Aalborg, Denmark

PostPosted: Tue Dec 18, 2007 1:18 am    Post subject: Reply with quote

i'm having the same issues, i'll look at it and try what you guys suggested as well.
Back to top
View user's profile Send private message
mashysteria
n00b
n00b


Joined: 17 Dec 2007
Posts: 6
Location: South, FL

PostPosted: Tue Dec 18, 2007 3:27 am    Post subject: Reply with quote

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
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2605

PostPosted: Tue Dec 18, 2007 3:40 am    Post subject: Reply with quote

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
View user's profile Send private message
mashysteria
n00b
n00b


Joined: 17 Dec 2007
Posts: 6
Location: South, FL

PostPosted: Tue Dec 18, 2007 3:48 am    Post subject: Reply with quote

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
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2605

PostPosted: Tue Dec 18, 2007 4:12 am    Post subject: Reply with quote

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
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