7

i'm using dual boot and i want to use windows 7 as the default operating system.So how can i change default OS of GRUB Boot loader?

Janindu
  • 95
  • 1
  • 1
  • 8

2 Answers2

8

use grub-set-default

$ sudo grub-set-default ENTRY

ENTRY is a number or a menu item title

or edit /boot/grub/grub.cfg

sudo chmod +w /boot/grub/grub.cfg
sudo vi /boot/grub/grub.cfg 
   change "0" in line: set default="0" to your choice
sudo chmod -w /boot/grub/grub.cfg
Karim
  • 96
  • 1
  • 4
    It would be a better idea to edit /etc/default/grub and run 'update-grub' afterwards. /boot/grub/grub.cfg is not meant to be edited. – nick Jan 28 '15 at 18:34
  • It would be good to note that the entry list can change so you may need to do this again later. The other option would be to write out the entry rather than using the index number.

    Example: GRUB_DEFAULT="Windows Vista (loader) (on /dev/sdc1)"

    – Gibado Oct 12 '16 at 02:36
2

How do I set Windows to boot as the default in the boot loader?

This question was discussed previously and a detailed answer could be found here...

How do I set Windows to boot as the default in the boot loader?

Kanak Saha
  • 31
  • 3