Boot Windows before Ubuntu (or other Linuxes)

Have you ever installed a Linux distro in a dual-boot configuration?

Usually (at least with Debian/Ubuntu based distros) the default OS won’t be Windows, but the new Linux.

While it might be desirable sometimes, it’s not always the case…

Even if you change the default from Linux to Windows, it’s not a long-term solution. As soon as there will be a new kernel update, the boot menu will be changed, and the Windows entry will move down. Alas, now the default will be memtest, or the old Linux kernel 😦

Much better solution is this:    (for Grub2 systems)

$ cd /etc/grub.d/
$ ls -1
00_header
05_debian_theme
06_mint_theme
10_linux
20_linux_xen
30_os-prober
40_custom
41_custom
README

This is the order of the boot sequence. Yours might be a little bit different (06_mint is specific for Linux Mint).
Windows entry is  30_os-prober .

So just run:

$ sudo mv 30_os-prober 08_os-prober

You might want to verify that it’s looks OK with “ls”.

And now:

$ sudo update-grub

Reboot and enjoy 🙂

Advertisements

Leave a comment

Filed under Linux