Kernel panic when rebooting (grub issue?)
Hello.
I've just installed a gentoobox that I'm gonna use as a webserver. I've been working with linux quite some time but still havent got all the basics togheter, however I managed to install gentoo without anyproblems... until I reboot. According to the gentoo installationguide my grub.conf is correct, but something is wrong when i get: Code:
VFS: Cannot open root device "hda3" or unknown-block(0,0) Code:
Disk /dev/hda: 15.3 GB, 15382241280 bytes Code:
timeout 3 Code:
/dev/hda1 /boot ext3 auto,noatime 1 2 Anyone got some ideas? Thx in advanced |
Quote:
|
Do you have an initrd.gz?
|
Quote:
I'd be (more than) mildly surprised if any (moderately) recent Gentoo doesn't have the libata changes included. hda ??? - try sda. |
Quote:
Gentoo is DIY. In installation process you configure and build your own kernel. Hence it's up to you whether you choose PATA (hdx) or libata (sdx) for your IDE drives. |
I have added all the PCI drivers available in the kernel.
I have initrd.gz in the kernel. I did try sda instead of hda. I also did try to add pata drivers aswell. Still not able to boot:( If I read as high up as I can from the bootscreen its says: Code:
ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:DMA |
Building every driver in does not help and can cause conflicts. Use lspci to determine the controller type you have and enable it in the kernel. Knowing your hardware before you install an (any) OS makes life much easier.
Edit: initrd is not required when you build your own kernel, it's needed only in very rare cases if there is no in-kernel drivers for booting hardware. |
Ok, no wonder I didnt have the correct driver. lspci have showed me "Intel Corporation 82801AA IDE Controller (rev 02)" and therefore I compiled with support for the inteldriver I found. However, by checking the spec of the motherboard it turned out that it actually used the "iTE IT8712F" controller.
So I went back to the kernel and checked for a driver that would fit. I didnt find a driver for the IT87-series only for 82 series. How do I resolv this? I have generic drivers kompiled into kernel already. Also, I have tried to boot the two drivers for the older controllers from the 82series separetly but it still results into the same kernel panic. Once again, thx for looking into this |
Boot a liveCD, and do a lsmod to get the driver(s) required. Usually a good starting point.
|
I did boot on a live cd (gentoo minimal x86 2007) and used rmmod to remove all modules except for: ipv6 and usbcore. So The driver needed is compiled into the kernel I suppose. How do I find out wicth one it is?
|
Search in kernel sources brings up this. Does not look as an IDE controller to me.
Code:
|
Run lspci -v from a LiveCD and it will tell you what kernel driver is in use for every device. You can also run it with -nv, this will tell you PCI-ID, go to http://kmuto.jp/debian/hcl/ and see what driver can be used.
|
Simplicity.
Sorry if this question is too obvious, just ruling out some simple checks.
1.) Are you sure that the filesystem on /dev/sda3 is ext3. 2.) You may also need to change the devices in fstab if the system is registering your devices sda instead of hda. Good Luck |
Ok, after searching the gentoo forums a while it turned out what IDE driver I should use (the one I used before starting expermanting).
Sp, whats left then? Whot is the problem really? I don have support for ext2, ext3, jfs, ROM, former shm fs, /proc/kcore, kernel automounter 4 support. Am I missing anything? |
Need to compile support.
If I am understanding correctly, you need to compile support for filesystems you are using into the kernel, minimal would be ext2 and 3. i usually enable most all of them.
|
Quote:
Edit: Boot up with some good LiveCD, run lspci -v, write down all drivers in use, enable the very same drivers in your kernel, doesn't sound impossible, does it? Edit 2: My first kernel build took 14 hrs, today's machines are not that slow, it takes less than 4 min now. Meaning start with lean kernel, disable all bells and whistles, ACPI and APM, things like that. And if you need help describe exactly to what point it boots, plus error messages. Checklist: 1. HDD controller 2. MS partition table support 3. Root filesystem This would suffice for IDE drives using PATA drivers. With libata you need also SCSI and SCSI disk support. |
These is the drivers I couldnt find in the kernel, perhaps someone could identify some of the drivers for me?
However, I suspect that the IDE controller is "Intel PIIXn" (according to gentoo forums) but I'm not sure. Also the PCI Bridge (i guess) is CONFIG_PCI, but also here, not sure (do you have to select a specific PCI bridge btw?) but the rest I have no clue about. Also, I added support for all "normal" fs available (except like minix and the misc ones), but still not able to read the drive. Any new suggestions? :S lspic -v: 00:00.0 Host bridge: Intel Corporation 82820 820 (Camino) Chipset Host Bridge (MCH) (rev 03) Subsystem: Intel Corporation 82820 820 (Camino) Chipset Host Bridge (MCH) Flags: bus master, fast devsel, latency 0 Memory at e8000000 (32-bit, prefetchable) [size=64M] Capabilities: [a0] AGP version 2.0 00:1e.0 PCI bridge: Intel Corporation 82801AA PCI Bridge (rev 02) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=02, subordinate=02, sec-latency=32 I/O behind bridge: 0000b000-0000cfff Memory behind bridge: efc00000-efefffff Prefetchable memory behind bridge: e5900000-e59fffff 00:1f.1 IDE interface: Intel Corporation 82801AA IDE Controller (rev 02) (prog-if 80 [Master]) Subsystem: Intel Corporation 82801AA IDE Controller Flags: bus master, medium devsel, latency 0 I/O ports at ffa0 [size=16] 00:1f.3 SMBus: Intel Corporation 82801AA SMBus Controller (rev 02) Subsystem: Intel Corporation 82801AA SMBus Controller Flags: medium devsel I/O ports at 0540 [size=16] |
That's funny, my lspci output is different:
Code:
03:00.0 SCSI storage controller: Adaptec AHA-2940U/UW / AHA-39xx / AIC-7895 (rev 03) Try with lspci -vv or -vvv. Intel Corporation 82801AA IDE Controller is your controller indeed, PIIX driver is probably the correct one. What's the PCI-ID of it? Where your boot stops now? Still the same error? |
Yeah I see that now. According to gentoo portage I'm running 2.2.10.
However I cant find any modules/drivers in the very verbose version either. Maybe you got another mod of pciutils? Or maybe it just dont work, cause I tried -k aswell without result, just acts as a normal lspci. :s This is the ouput i get from lspci -vvv: 00:00.0 Host bridge: Intel Corporation 82820 820 (Camino) Chipset Host Bridge (MCH) (rev 03) Subsystem: Intel Corporation 82820 820 (Camino) Chipset Host Bridge (MCH) Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- Latency: 0 Region 0: Memory at e8000000 (32-bit, prefetchable) [size=64M] Capabilities: [a0] AGP version 2.0 Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW- AGP3- Rate=x1,x2,x4 Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW- Rate=<none> 00:1e.0 PCI bridge: Intel Corporation 82801AA PCI Bridge (rev 02) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- Latency: 0 Bus: primary=00, secondary=02, subordinate=02, sec-latency=32 I/O behind bridge: 0000b000-0000cfff Memory behind bridge: efc00000-efefffff Prefetchable memory behind bridge: e5900000-e59fffff Secondary status: 66MHz- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR- BridgeCtl: Parity- SERR+ NoISA- VGA- MAbort- >Reset- FastB2B- 00:1f.1 IDE interface: Intel Corporation 82801AA IDE Controller (rev 02) (prog-if 80 [Master]) Subsystem: Intel Corporation 82801AA IDE Controller Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Latency: 0 Region 4: I/O ports at ffa0 [size=16] 00:1f.3 SMBus: Intel Corporation 82801AA SMBus Controller (rev 02) Subsystem: Intel Corporation 82801AA SMBus Controller Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Interrupt: pin B routed to IRQ 0 Region 4: I/O ports at 0540 [size=16] lspci -nn: 00:00.0 Host bridge [0600]: Intel Corporation 82820 820 (Camino) Chipset Host Bridge (MCH) [8086:2501] (rev 03) 00:1e.0 PCI bridge [0604]: Intel Corporation 82801AA PCI Bridge [8086:2418] (rev 02) 00:1f.1 IDE interface [0101]: Intel Corporation 82801AA IDE Controller [8086:2411] (rev 02) 00:1f.3 SMBus [0c05]: Intel Corporation 82801AA SMBus Controller [8086:2413] (rev 02) This is the PCI_ID, right? The boots stops at the very same place as before. Still same error. :/ |
OK, did you run lspci with -nv option as I suggested and checked it at http://kmuto.jp/debian/hcl/
|
Ok, now I've checked against the database (and finally i did find the 82801aa support unde I2C! :D) but I still get the same error msg when I'm trying to boot.
I have to say that all the drivers wasnt name exact as they where in the database in the kernel but I added those that looked logic for the specific device, so I dont think I screw up there. Might be wrong in my grub.conf anyway? :S |
I2C?
Database tells 8086:2411 works with PIIX. You built in PIIX and still get "unknown-block(0,0)" message? grub.conf you posted earlier is correct. |
I have support for BLK_DEV_PIIX and ATA_PIIX and still get the same error msg.
|
You have enabled both, not a good idea. Don't know, your HDD may be recognized as sda as a result, meaning the line root=/dev/hda3 in the grub.conf becomes wrong.
Edit: Remember, if you choose to use libata then you must enable SCSI and SCSI disk. |
Finally! Thx alot:D
Removed the ATA_PIIX and it works fine now=) Or well, not fine cause there was some other problem with the filesystem but atleast it boots now. The other is a different problem and I wont bother anymore. Once again, thx alot. |
Great! :D You are welcome.
|
All times are GMT -5. The time now is 11:49 AM. |