LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (http://www.linuxquestions.org/questions/gentoo-87/)
-   -   GRUB fails to boot (http://www.linuxquestions.org/questions/gentoo-87/grub-fails-to-boot-4175444312/)

malloc 01-05-2013 09:13 PM

GRUB fails to boot
 
I have recently followed the following guides:

http://en.gentoo-wiki.com/wiki/DM-Cr..._Configuration
http://www.gentoo.org/doc/en/handboo...?part=1&chap=6

After POST, GRUB loads but does nothing.

When I try to specify the kernel by hand with: "kernel /boot/vmlinuz root=/dev/sda5" (however I also tried different root options, like /dev/mapper/root and sda7) I get "Error 15: File not found"

sda1, sda2, sda3 are Windows/recovery partitions, sda4 is extended, sda5 is my root, sda6 is swap and sda7 is my root.

My /boot/grub/grub.conf is:

Code:

defaults 0
timeout 5

title=Gentoo
kernel /boot/vmlinuz root=/dev/mapper/root
initrd /boot/initramfs.cpio.gz

title=Windows NT
root (hd0,0)
savedefaults
makeactive
chainloader +1


Snark1994 01-06-2013 06:20 AM

When you say

Quote:

After POST, GRUB loads but does nothing.
what do you mean? Do you get a blank screen? Or does the menu appear, but if you try to boot any of the options, you're returned to the menu?

I also hope you mean http://www.gentoo.org/doc/en/handboo...p=10#doc_chap2, not the "mirrorlist" page you posted from the Gentoo handbook... I assume you followed all the instruction on that page to set up grub?

cyberpatrol 01-06-2013 06:21 AM

Looks like you have your system encrypted with dm-crypt/LUKS.

So try this one:
Code:

kernel /boot/vmlinuz cryptdevice=/dev/sdaX:root root=/dev/mapper/root
And add this line to the Linux section:
Code:

root (hd0,Y)
Where X is your root partition and Y your boot partition. I guess X=7 and Y=4.


All times are GMT -5. The time now is 08:20 PM.