Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Filesystem fault on boot. - SOLVED
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
Duco Ergo Sum
Apprentice
Apprentice


Joined: 06 Dec 2005
Posts: 154
Location: Winsford

PostPosted: Wed Dec 07, 2005 12:32 am    Post subject: Filesystem fault on boot. - SOLVED Reply with quote

The problem is that the kernel fails to mount or recognise the root partition.

I have build a system following the instructions in the installation guide to the point where it tells you to install grub and reboot.

With my first kernel make menuconfig build I get the error:

<0>Kernel panic not-syncing: Attempted to kill init!


Then with my next attempt at a kernel this time built with the command genkernel --menuconfig -all I get the error:

!!Block device /dev/sda4 is not a valid root device...
!!The root block device is unspecified or not detected...


The difference I believe is because the genkernel uses a ramfs for loading modules and things.


This led me to believe there that there might be something wrong with the filesystem. Worryingly I even get an odd report when I mount those filesystem from the livecd enviroment. If I use the command mount /dev/sda4 /mnt/gentoo then I get the following report. I'd like to point out here that each sda2 and sda4 are formatted ext3.

EXT2-fs warning (device sda4): ext2_fill_super: mounting ext3 filesystem as ext2

Inserting into the mount command -t ext3 does get rid of the above line but I don't think that is really solving anything.


As my system will be a dual boot system, I can still boot windows which is on the same disc drive, I don't think the problem is a hardware fault. I have found simmilar reports else where but none of which has led to a solution.

Please help me!


Last edited by Duco Ergo Sum on Sat Dec 10, 2005 1:32 am; edited 1 time in total
Back to top
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Wed Dec 07, 2005 12:45 am    Post subject: Reply with quote

The warning when mounting with livecd is not a problem. You've to use -t ext3 in the command. What's your grub command line looks like? Are you sure you built ext3 fs support in kernel? And post /etc/fstab too, please.
_________________
Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Wed Dec 07, 2005 1:09 am    Post subject: Reply with quote

My guess is that both of your kernels are missing the low-level driver for your SCSI controller (i.e. the controller that /dev/sda is plugged into).
Back to top
View user's profile Send private message
Duco Ergo Sum
Apprentice
Apprentice


Joined: 06 Dec 2005
Posts: 154
Location: Winsford

PostPosted: Wed Dec 07, 2005 1:30 am    Post subject: fstab & grub & kernel options. Reply with quote

The fstab is the same as the standard one supplied in a stage1 tar ball except with words BOOT & ROOT replace with sda2 and sda4 respectively and the filesystem types set to ext3.

Grub is a little trickier to describe.

Grub

Code:

default 0
timeout 30
#splashimage=(hd0,1)/grub/splash.xpm.gz

title=chen
root (hd0,1)
kernel /kernel2.6a root=/dev/sda4 #vga=792

title=little chen
root (hd0,1)
kernel /kernel-genkernel-x86_64-2.6.14-gentoo-r2 real_root=/dev/sda4 #vga=791 splash=silent
initrd /initramfs-genkernel-x86_64-2.6.14-gentoo-r2

title=windows xp
rootnoverify (hd0,0)
chainloader +1


Ah... I guess that should have been obvious :oops:

root (hd0,1) should be root (hd0,3) sorry...

For completeness sake, I chose ever available kernel option for ext3 and ext2 and others just on the off chance.

Thank you.
Back to top
View user's profile Send private message
Duco Ergo Sum
Apprentice
Apprentice


Joined: 06 Dec 2005
Posts: 154
Location: Winsford

PostPosted: Wed Dec 07, 2005 2:24 am    Post subject: Shame faced... Reply with quote

Oh well.

I must learn to read this is wrong;
Quote:
root (hd0,1) should be root (hd0,3) sorry...
I had it right in the first place. I confused grub root with the file system root.

Which means that I'm back at square one and I'm an idiot.

<please insert your own form of vugar exclamation here>
Back to top
View user's profile Send private message
th0th696
Apprentice
Apprentice


Joined: 08 Dec 2004
Posts: 185

PostPosted: Wed Dec 07, 2005 2:40 am    Post subject: Re: Shame faced... Reply with quote

Duco Ergo Sum wrote:
Oh well.

I must learn to read this is wrong;
Quote:
root (hd0,1) should be root (hd0,3) sorry...
I had it right in the first place. I confused grub root with the file system root.

Which means that I'm back at square one and I'm an idiot.

<please insert your own form of vugar exclamation here>


Maybe try (hd0,0) as grub counts 0 as the first partition, but the reason I'm here is mine is not working all of a sudden as well so don't get too frustrated when my help is no good.
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Wed Dec 07, 2005 3:01 am    Post subject: Reply with quote

cyrillic wrote:
My guess is that both of your kernels are missing the low-level driver for your SCSI controller (i.e. the controller that /dev/sda is plugged into).

Have you read cyrillic comment? If you have a SATA controller, the comment also applies. You must make sure that you compile into the kernel <*> and not as a module <M> the driver for your storage controller.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
Duco Ergo Sum
Apprentice
Apprentice


Joined: 06 Dec 2005
Posts: 154
Location: Winsford

PostPosted: Wed Dec 07, 2005 3:06 am    Post subject: Got it sorted! Reply with quote

It was the scsi support in the kernel as it turns out.

I enabled scsi disks and generic scsi and some scsi transport things all compiled into the kernel. I realised that SATA appears as a scsi device like sda but I didn't realise that this is also reflected inside the kernel.

Thank you all for your help and encoragement.
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