I have compiled my own kernel on Gentoo (following the handbook) and then I have moved the
/boot/vmlinuz-4.0.5. But when I boot the system I get the Grub2 shell. What am I doing wrong?
Also, when I try to boot the system from the Grub shell I got the following error:
kernel panic-not syncing: VFS: unable to mount root fs on unknown block(0, 0). I also have Windows 10 installed on this hard drive.
/boot was a separate partition of 2MB but I discovered that I didn't need to do that and I removed any reference to that partition from
/etc/fstab (basically, I removed the line from
fstab concerning the
/boot). Given the fact that after I rebooted the system I got the
grub2 shell. I booted from an Ubuntu live CD and I built the kernel, after that I moved the kernel manually to
/boot. I did it manually because
make install (which should've handle this job) would have copied it to the wrong place.
These are the commands that I used in order to build the kernel from the Ubuntu live CD:
ubuntu@ubuntu:/media/ubuntu/a243b31a-80dd-4a49-8de2-f4417816981d/usr/src/linux$ make menuconfig ubuntu@ubuntu:/media/ubuntu/a243b31a-80dd-4a49-8de2-f4417816981d/usr/src/linux$ make && make modules_install ubuntu@ubuntu:/media/ubuntu/a243b31a-80dd-4a49-8de2-f4417816981d/usr/src/linux$ cp arch/bzImage ../../../boot/vmlinuz-4.0.5
Then I rebooted.