View previous topic :: View next topic |
Author |
Message |
Duco Ergo Sum Apprentice
Joined: 06 Dec 2005 Posts: 154 Location: Winsford
|
Posted: Wed Dec 07, 2005 12:32 am Post subject: Filesystem fault on boot. - SOLVED |
|
|
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 |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Wed Dec 07, 2005 12:45 am Post subject: |
|
|
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 |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Wed Dec 07, 2005 1:09 am Post subject: |
|
|
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 |
|
|
Duco Ergo Sum Apprentice
Joined: 06 Dec 2005 Posts: 154 Location: Winsford
|
Posted: Wed Dec 07, 2005 1:30 am Post subject: fstab & grub & kernel options. |
|
|
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
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 |
|
|
Duco Ergo Sum Apprentice
Joined: 06 Dec 2005 Posts: 154 Location: Winsford
|
Posted: Wed Dec 07, 2005 2:24 am Post subject: Shame faced... |
|
|
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 |
|
|
th0th696 Apprentice
Joined: 08 Dec 2004 Posts: 185
|
Posted: Wed Dec 07, 2005 2:40 am Post subject: Re: Shame faced... |
|
|
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 |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Wed Dec 07, 2005 3:01 am Post subject: |
|
|
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 |
|
|
Duco Ergo Sum Apprentice
Joined: 06 Dec 2005 Posts: 154 Location: Winsford
|
Posted: Wed Dec 07, 2005 3:06 am Post subject: Got it sorted! |
|
|
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 |
|
|
|