My daily work revolves around Windows, Putty.
My laptop which runs Ubuntu 10.10 and Windows 7 as dual boot.
I wanted to change the default boot conf to Windows 7 instead of Ubuntu (which I just use when I am messing around something ).
Anyways, I logged into Ubuntu 10.10 and went to my know place to change boot configuration /boot/grub/menu.lst
But to my surprise it is not there. Little looking around got me want I wanted.
Below is steps you need to follow to change your default boot configuration.
- Go to Terminal – Type “sudo vim /etc/default/grub” .
- Change “GRUB_DEFAULT=0″ to “GRUB_DEFAULT=4″
- Remember sequence start from 0 , if your OS is on 5th on the list, in boot menu then you enter 4 in the “grub” file.
Output for my system.
ahmed@ahmed-on-Edge:/etc/default$ sudo vim grub
[sudo] password for ahmed:
grub-mkconfig: You must run this as root
ahmed@ahmed-on-Edge:/etc/default$ sudo update-grub
Generating grub.cfg …
Found linux image: /boot/vmlinuz-2.6.38-10-generic-pae
Found initrd image: /boot/initrd.img-2.6.38-10-generic-pae
Found linux image: /boot/vmlinuz-2.6.38-8-generic-pae
Found initrd image: /boot/initrd.img-2.6.38-8-generic-pae
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1