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.
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.
run “grub-install” with “–recheck” option and then run “update-grub”.
A. Grub starts with command line mode.
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)
B. You can boot into Linux with the following commands:
root (xxx,x) # (xxx,x) is the
linux /boot/vmlxxxxx root=/dev/xxxx