Thursday, December 26, 2013

Fedora Boot Order

After installing the Sugar Learning Platform on my Windows 7 laptop, it now has GRUB bootloader with the following boot entries:
  • Fedora 17
  • Advanced configuration
  • Microsoft Windows 7
And by default it goes to the first entry, which is Fedora.

Now that's a bit inconvenient, as I use Windows most of the time. Here's how to make the default boot switch to Windows 7:
  1. As su, grep menuentry /boot/grub2/grub.cfg to show the boot entries
  2. vi /etc/default/grub By default, it'll say GRUB_DEFAULT=saved. If you run grub2-editenv list, it'll show you Fedora 17 as the default option.
  3. grub2-set-default "Microsoft Windows 7" to change the default.
  4. grub2-editenv list to confirm that the configuration change was committed.
Another option is to manually make the change:
  1. vi /etc/default/grub
  2. GRUB_DEFAULT="Microsoft Windows 7"
  3. grub2-mkconfig -o /boot/grub2/grub.cfg to save.

No comments:

Post a Comment