Change Boot order Dual boot Fedora 22 – Grub 2

We are changing boot order in dual boot OS – Windows 7 and Fedora 22. By default you will find Fedora as default OS. Now if you want Windows 7 to be be your default OS then you will have make some changes in grub2 requiring few commands to be run.

This Guide applies to Fedora 22

Change Boot order Dual boot Fedora 22

1. Find menu entry for Windows OS. Open terminal log in to root and run

cat /boot/grub2/grub.cfg |grep Windows

Output of this command will be
menuentry “Windows 7 (loader) (on /dev/sda1)” ………………………………………………

2. Make Windows as default menu entry. Run below command

grub2-set-default "Windows 7 (loader) (on /dev/sda1)"

3. Update grub.cfg. Run command

grub2-mkconfig -o /boot/grub2/grub.cfg

Reboot your PC. Now Windows will be your default OS.

In case you still not getting Windows to boot by default. try following commands after logging on as root on terminal.

  1. Run command
    vi /etc/default/grub/

    and now save the file.Change boot order Dual Boot Fedora

  2. Look for entry GRUB_DEFAULT=saved. Edit it to number on with your windows operating system appear at Grub startup menu during boot. Remember first entry is 0 then 1 and so on. In my case it was 3
    GRUB_DEFAULT=3

    Now save the file.Change boot order Dual Boot Fedora 22

  3. Update grub.cfg. Run command
    grub2-mkconfig -o /boot/grub2/grub.cfg

Reboot your system. Windows will be your default OS now.