- Linux Version: Debian 8.6 Jessie
When setting up desktop or laptop for dual boot into either Windows or Debian, grub2 is typically installed and default to boot into Debian.
For my laptop, I would like to boot to Windows by default.
This can be achieved by modifying the default option GRUB_DEFAULT=0 in /etc/default/grub.
- Start laptop and desktop to grub boot menu
- Check the required boot entry (Windows) sequence number on the menu – note the first entry has sequence 0
- Boot into Debian
- Edit GRUB_DEFAULT in /etc/default/grub with the target sequence number.
- Run update-grub – sudo is required if you are not logon as root user.