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.
ahmed@ahmed-on-Edge:/etc/default$ sudo vim grub
[sudo] password for ahmed:
ahmed@ahmed-on-Edge:/etc/default$ update-grub
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
done
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.
- Save the file.
- Type "sudo update-grub” in the terminal.
- Reboot and have fun with Windows 7 as the default OS to be booted.
ahmed@ahmed-on-Edge:/etc/default$ sudo vim grub
[sudo] password for ahmed:
ahmed@ahmed-on-Edge:/etc/default$ update-grub
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
done
Comments
Post a Comment