Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel panic: Does not like my harddrive or partitions
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
Somewhere
n00b
n00b


Joined: 01 Jul 2008
Posts: 38

PostPosted: Sat Jul 05, 2008 12:00 am    Post subject: Kernel panic: Does not like my harddrive or partitions Reply with quote

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


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Sat Jul 05, 2008 12:54 am    Post subject: Reply with quote

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


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

PostPosted: Sat Jul 05, 2008 4:27 am    Post subject: Reply with quote

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


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Jul 05, 2008 9:59 am    Post subject: Reply with quote

Somewhere, welcome to Gentoo,

a little more info on your hardware (like already posted, lspci) would be nice

also what motherboard are you running, sata-chipset, ide-controller, etc. etc.
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Somewhere
n00b
n00b


Joined: 01 Jul 2008
Posts: 38

PostPosted: Sat Jul 05, 2008 11:45 am    Post subject: Reply with quote

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


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Jul 05, 2008 12:01 pm    Post subject: Reply with quote

what laptop-model is that ?

manufacturer, etc.

if we have a model we can perhaps point to an existing (working) kernel-config
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Somewhere
n00b
n00b


Joined: 01 Jul 2008
Posts: 38

PostPosted: Sat Jul 05, 2008 12:04 pm    Post subject: Reply with quote

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


Joined: 01 Jul 2008
Posts: 38

PostPosted: Sat Jul 05, 2008 4:19 pm    Post subject: Reply with quote

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


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

PostPosted: Sat Jul 05, 2008 9:21 pm    Post subject: Reply with quote

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


Joined: 01 Jul 2008
Posts: 38

PostPosted: Sun Jul 06, 2008 3:54 pm    Post subject: Reply with quote

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


Joined: 09 Feb 2006
Posts: 17
Location: Akron, Ohio

PostPosted: Tue Jul 08, 2008 8:30 pm    Post subject: Reply with quote

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