http://www.torrent-invites.com/miscellaneous/58489-changing-grubs-boot-order.html
After installing Linux dual-boot, you still want your Windows partition to boot first? The above page details the steps well. It depends on which version of GRUB you have, v2, or v1 (legacy).
For v1, run "sudo pico /boot/grub/menu.lst" to edit the file and put the entries in the order you want. # lines are comments, and it uses the order in the file.
For v2, run "sudo pico /etc/default/grub" and change the GRUB_DEFAULT value to the menu entry number you want. Use 0-based counting for the menu entries in the file /boot/grub/grub.cfg, or try "grep 'menuentry' /boot/grub/grub.cfg", or just count on the current menu when it's booting. In v2, you also need to run "sudo update-grub" after this change.
Note: On v2, the above method is recommended. I found you could instead edit the grub.cfg file, changing the "set default=" line to the required value. However, it will be overwritten with the above-mentioned GRUB_DEFAULT value next time these processes rebuild the CFG.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment