![]() |
Kernel panic after installing gentoo
1 Attachment(s)
After installing gentoo using kernel 3.2.1-r2 without genkernel I got the following error message:
Code:
[ 2.352411] Kernel panic - not syncing: VFS: Unable to mount rootfs on unknown-block(2,0)Is there any way I can recompile the kernel without installing gentoo again? Do you know which modules I forgot to include? fdisk -l /dev/sda Code:
Gentoo mountpoints: /dev/sda5 is /boot /dev/sda6 is / /dev/sda7 is /swap My grub.conf : Code:
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbookEDIT: chrooted again using Gentoo CD and recompiled kernel (and copied bzImage to /boot) , but I get same error message. I uploaded kernel config file. Also, startx doesn't work: Code:
(EE) Failed to load module "vesa"---------------------- I will come back after I will install it again. |
genkernel uses an initrd. You will need one too unless you build all the required support to mount the root into the kernel (i.e. not as modules).
I've never used genkernel, and tended to use my own config. Means you doing the legwork for your box. Things are significantly easier these days - try "make localyesconfig". |
So if I type "make localyesconfig" it will generate an initrd image?
|
No, it won't - perhaps you didn't read the bit after "unless".
"make --help" will list the options and a brief description. After that, a good search engine is invaluable - gentoo has always had good doco. |
1 Attachment(s)
I recompiled the kernel and I included all the filesystems (not as modules) excepting the experimental ones. It still gives the same error, but now it loads nouveau before the kernel panic, see the picture I uploaded.
Code:
mount /dev/sda6 /mnt/gentoo/etc/fstab : Code:
|
I forgot to include Nvidia SATA driver, now it works.
|
| All times are GMT -5. The time now is 11:14 AM. |