View previous topic :: View next topic |
Author |
Message |
Somewhere n00b
Joined: 01 Jul 2008 Posts: 38
|
Posted: Sat Jul 05, 2008 12:00 am Post subject: Kernel panic: Does not like my harddrive or partitions |
|
|
I tried installing Gentoo. I followed the handbook’s instructions, but my kernel panicked when mounting the root file system during boot-up. I tried every suggestion the #gentoo-amd64 guys had to offer, but in the end I just had to give up.
The error I was getting was:
kernel panic - not syncing :VFS: unable to mount root fs on unknown block (2,0)
(The disk sdc1 (hd2,0) is the cd-rom.)
They suggested that I had compiled a kernel without support for either SATA, ext3, or a few other things. All these suggestions were met in my compiled kernel. It did not work when I tried an generic kernel from genkernel either.
I think the problem was that I used a more advanced partition schema than the handbook suggested. This screen hot from GParted shows what I was trying to achieve.
[img]http://img352.imageshack.us/img352/9650/screenshothr5.png[/img]
/boot/grub/grub.conf said:
title Gentoo-o-ooo
root(hd0,0)
kernel /boot/kernel-image root=/dev/sda5
(Got the syntax from the Gentoo handbook.) I theorise that my problems may be related to the fact that sda5 is an extended partition and not a primary partition. I do not exactly understand how or why.
Alternatly it may be my /etc/fstab. |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Sat Jul 05, 2008 12:54 am Post subject: |
|
|
No, primary versus extended makes no difference as far as booting is concerned.
I'm not entirely certain that you can mount /usr apart from /, though you should
be able to.
I don't understand the /dev/.static/dev entry in fstab; it might be worth double-checking
that it's valid. Otherwise it looks as if grub is picking up the wrong filesystem. Would
it be worth re-installing grub?
Good luck - Will |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sat Jul 05, 2008 4:27 am Post subject: |
|
|
Somewhere wrote: | Kernel panic: Does not like my harddrive or partitions |
More likely, the kernel does not like the controller your harddrive is plugged into.
Posting the output of "lspci" would help us help you in this situation.
Also worth mentioning, the "unknown block (2,0)" part of the error message is the kernel's notation for /dev/fd0 which is your first floppy drive.
What this tells me is that your kernel is configured to mount root over NFS (most people don't want this), and when a suitable NFS server cannot be found, it falls back to booting from floppy. |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
Somewhere n00b
Joined: 01 Jul 2008 Posts: 38
|
Posted: Sat Jul 05, 2008 11:45 am Post subject: |
|
|
kernelOfTruth wrote: | also what motherboard are you running, sata-chipset, ide-controller, etc. etc. |
I have seen “SATA IDE controller“ outputed on my screen some times, so I guess that is what I have.
cyrillic wrote: | Also worth mentioning, the "unknown block (2,0)" part of the error message is the kernel's notation for /dev/fd0 which is your first floppy drive. |
This machine does not even have a floppy drive. I think it is unlikely that my system should even be attempted to be mounted on a phantom floppy drive.
cyrillic wrote: | What this tells me is that your kernel is configured to mount root over NFS (most people don't want this), and when a suitable NFS server cannot be found, it falls back to booting from floppy. |
What is NFS? Networked File System, maybe? ... If the only problem is misconfiguration, then please how do I correct it?
This hardware information comes from # lspci on my system when it is running Debian.
lspci-output wrote: | debjan:/home/aleksand# lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express PCI Express Root Port (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation G72M [Quadro NVS 110M/GeForce Go 7300] (rev a1)
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
05:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
05:04.0 CardBus bridge: ENE Technology Inc CB1410 Cardbus Controller (rev 01)
05:06.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller
05:06.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
05:06.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 0a)
05:06.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 05)
05:06.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff) |
cwr wrote: | No, primary versus extended makes no difference as far as booting is concerned.
I'm not entirely certain that you can mount /usr apart from /, though you should
be able to. |
I am booting /usr separate from / right now on Debian. I have always done this.
cwr wrote: | I don't understand the /dev/.static/dev entry in fstab; it might be worth double-checking
that it's valid. |
This is something Debian put in. When I created the fstab myself in Gentoo I simply called it /. |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
Somewhere n00b
Joined: 01 Jul 2008 Posts: 38
|
Posted: Sat Jul 05, 2008 12:04 pm Post subject: |
|
|
Lenovo 3000 N100 (TY0BJNO). (“NO” is just referring to the Norwegian keyboard and Norwegian Win XP (which I have never used), so any other two-letter combination at the end of the model number should be the same machine.) |
|
Back to top |
|
|
Somewhere n00b
Joined: 01 Jul 2008 Posts: 38
|
Posted: Sat Jul 05, 2008 4:19 pm Post subject: |
|
|
My weird kernel panics was due to problems with partition naming The livecd referred t them as /dev/sda1, but Gentoo used /dev/hda1 after I tried booting up in Gentoo. |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sat Jul 05, 2008 9:21 pm Post subject: |
|
|
Somewhere wrote: | ... but Gentoo used /dev/hda1 after I tried booting up in Gentoo. |
This is due to your Gentoo kernel using the older IDE drivers instead of the newer libata drivers.
You can change that, and have your harddrive called /dev/sda once again by turning off this option
menuconfig: | Device Drivers --->
< > ATA/ATAPI/MFM/RLL support ---> |
and selecting these options instead.
menuconfig: | Device Drivers --->
SCSI device support --->
<*> SCSI disk support
<*> Serial ATA (prod) and Parallel ATA (experimental) drivers --->
<*> Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support |
BTW, these are the options that you have (but do not need), that are causing your kernel to try mounting its root filesystem over the network, and then fall back to your nonexisting floppy drive.
menuconfig: | Networking --->
Networking options --->
[*] IP: kernel level autoconfiguration
File systems --->
[*] Network File Systems --->
<*> NFS file system support
[*] Root file system on NFS |
|
|
Back to top |
|
|
Somewhere n00b
Joined: 01 Jul 2008 Posts: 38
|
Posted: Sun Jul 06, 2008 3:54 pm Post subject: |
|
|
I have got it working now.
I have even got X up and running. KDM/KDE stiill remins, but I think I can get that to work as well. |
|
Back to top |
|
|
1shot1kill n00b
Joined: 09 Feb 2006 Posts: 17 Location: Akron, Ohio
|
Posted: Tue Jul 08, 2008 8:30 pm Post subject: |
|
|
Good luck with kde. the rest of the installing of the software should be easy. The hardest thing i think you will run in to is going to be the USE flags or a blocked package, both of which should be easy after a little thought and a little google help. |
|
Back to top |
|
|
|