Boot with GRUB2

Tips:
1. Use the “–recheck” option with grub-install.  This option asks “grub-install” to check the device map before installation. Without this option, the installed grub sometimes will not be able to find its “grub.cfg” file correctly, becasue the device map is wrong.

Trouble shot:
Case
Phenomena:
A. grub starts with command line mode instead of using the menu specified by “grub.cfg”, and
B. In the command line mode, commands “set root=(xxx,x)” and “configurefile xxx” load the menu correctly.

Possible solutions:
run “grub-install” with “–recheck” option and then run “update-grub”.

Case
Phenomena:
A. Grub starts with command line mode.

Possible solutions:
A. If you have a correct grub menu on a drive, then you can boot into Linux with the following grub commands:
—————
set root=(xxx,x) # (xxx,x) is the specification of the drive where the grub menu file is. For example (hd0,1)

configurefile WhereYourGrubMenuFileIs

—————

B. You can boot into Linux with the following commands:
—————
root (xxx,x) # (xxx,x) is the

linux /boot/vmlxxxxx root=/dev/xxxx

initrd /boot/inixxxxx

boot
—————

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s