How to change the priority of OS as default:

Closed
nsganeshkumar - Jun 25, 2010 at 05:16 AM
jack4rall Posts 6428 Registration date Sunday June 6, 2010 Status Moderator Last seen July 16, 2020 - Jun 25, 2010 at 07:16 AM
Hello,

I have installed dual OS on my pc(ie.Ubuntu and windows 7) and now ubuntu boots as a default. Now i need to change the priority to be boot with windows 7 if the system is restarted.Plz help to change the that default prority.....

Related:

1 response

jack4rall Posts 6428 Registration date Sunday June 6, 2010 Status Moderator Last seen July 16, 2020
Jun 25, 2010 at 07:16 AM
Try this 1

1) Boot into unbuntu.

2) Run the following command in terminal window.

sudo gedit /boot/grub/menu.lst

3) Then Menu.lst will be opened. Then search for this line

default 0

All you need to do is change that number 0 to match the Windows boot

section. Typically it's always going to be 4 on a default dual-boot configuration.

So change that value from 0 to 4 and the save the file and restart it.

[Note: The blocks at the bottom of the file match the items in the menu. You can

change this value to match whichever item you want as default, just remember

that numbering starts from 0.]
0