Ubuntu 9.10 ships with the new GRUB (Grand Unified Boot Loader 1.97 beta) in plain words its the software that boots the operating system you choose when you boot the computer. In earlier versions of Ubuntu / Grub to change the menu on the grub screen, one had to edit the
/boot/grub/menu.lst
file. In the new system this a little different from just editing the one file. - First be root
sudo su
- Edit the file
/etc/default/grub
- Change the GRUB_DEFAULT value to number your default operating system
in My case
0.
Linux kernel ******- 1. Linux Recovery ****
- 2. Memory Test bla bla...
- 3. Memory Test bla bla bla...
- 4. Windows 7 Loader....
- I have set GRUB_DEFAULT = 4 for Windows 7
- Change GRUB_TIMEOUT to change the default timeout if you want to.
- Run update-grub
Generating grub.cfg ... Found linux image: /boot/vmlinuz-2.6.31-14-generic Found initrd image: /boot/initrd.img-2.6.31-14-generic Found memtest86+ image: /boot/memtest86+.bin Found Microsoft Windows XP Home Edition on /dev/sda1
done
You can verify your default boot entry changed or not by viewing the following file
sudo cat /boot/grub/grub.cfg
It showed set default="4" to me for my case .
Enjoy !!!