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.
|
All times are GMT -5. The time now is 05:46 AM. |