So when I turn my computer on, Grub rescue boots up. I have finally figured out how to get into Windows, but now I want to skip the step of entering the information into Grub to get into windows. How do I make Windows boot before Grub does?
|
|
You probably don't want to skip grub and boot direct to Windows - that will prevent you from booting into linux. Instead, you want to make Windows the default boot entry. The following works on debian (and derivatives like ubuntu). The procedure is conceptually similar but differs significantly in the details on RH/Centos and other distros.
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
Optionally set Delete or comment out all lines mentioning This will configure grub so that whatever you select from the menu becomes the default until you select something else.
You can also use You can list grub menu entries with a simple grep like:
or something a bit fancier like:
Be warned: numbering becomes complicated if there are any grub sub-menus. A simple e.g. given the following, # sed -r -n -e '/submenu|menuentry/{s/(["'\'']) .*/\1/;p}' /boot/grub/grub.cfg | cat -n
1 menuentry 'Ubuntu, with Linux 3.2.0-27-virtual'
2 menuentry 'Ubuntu, with Linux 3.2.0-27-virtual (recovery mode)'
3 submenu "Previous Linux versions"
4 menuentry 'Ubuntu, with Linux 3.2.0-24-virtual'
5 menuentry 'Ubuntu, with Linux 3.2.0-24-virtual (recovery mode)'
6 menuentry "Memory test (memtest86+)"
7 menuentry "Memory test (memtest86+, serial console 115200)"
There is also a |
|||
|
|
