Friday, 14 May 2010

Ubuntu 10.04. GRUB - Change default OS to load

Installed Ubuntu 10.04 with Windows 7.
By default Linux boots. Followed the following to make Windows 7 as default.

1. Ubuntu 10.04 uses GRUB2. Most of the links from google will talk about "menu.lst" file which does not exist anymore.

2. The file to look for is /etc/default/grub

3. This had the GRUB_DEFAULT=0 as the first line.

4. Check the file /boot/grub/grub.cfg to find out the Sr no for Windows 7. The numbering starts from 0. So Windows 7 was 5th in the Sr. number.

5. Use GSKU GEDIT /etc/default/grub to edit the file. Change to GRUB_DEFAULT=4.

6. User UPDATE-GRUB command to install the updated GRUB.

Thats it. Now Windows 7 should loaded by default. Now my wife need not run and save the computer from booting into Ubuntu.

No comments: