Howto Set Windows as Default OS when Dual Booting Ubuntu

Sponsored Link
When you install Windows and ubuntu as dual boot you’ll notice that Ubuntu is set as the default operating system in the Grub loader if you want to change your default booting OS to windows you need to follow this procedure

You need to edit /boot/grub/menu.lst file

sudo vi /boot/grub/menu.lst

Look for the following option

default 0

to

default 4

Save and exit the file and reboot your system.

You will need to change that number 0 to match the Windows boot section.In most cases 4 is a default dual-boot configuration and in one my friend's laptop this value is 5 so you need to check this and enter the value.The blocks at the bottom of the file match the items in the menu and the numbering starts at 0

Incoming search terms:

Related posts

19 thoughts on “Howto Set Windows as Default OS when Dual Booting Ubuntu

  1. Maybe there is another easier way. Use startup-manager,below the “Boot options”,you can make a choice with “Default operating system”,choose windows xp, and all done!!

    [Reply]

  2. Hi,
    When I try to save the change from dfault 0 to default 4 I get this message:
    “You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again”
    How can I fix this?
    Thnx

    [Reply]

  3. i have the same problem “You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again”, how can i fix it PLASE! :'(

    [Reply]

  4. Anyone who is getting the same
    “You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again”
    How can I fix this?

    This is because you need to edit the file as root (or as a user who has sudo privileges) to change the file as root open up the terminal and type sudo -i (if you are not a sudo user then you will need to load up in safe mode and log in as root on the root shell option and then type adduser yourusernamehere admin, this will set the username you entered to admin and will give you the right to change system settings e.x.) after logging in as root using the sudo -i command type sudo gedit /boot/grub/menu.lst edit the file and then save and exit. Reboot and see if it works, hope this helps!

    [Reply]

  5. Startup manager works he just misspelled it.

    sudo apt-get install startupmanager

    there is no dash in between the startup and manager

    [Reply]

  6. Or the easier way, just go to your software center (under the “Applications” menu. Go to “System Tools”, then select “startup-manager” from there.

    [Reply]

  7. I installed startup manager on Karmic, using the Software Manager.

    Using the startup manager it was easy to change the default boot option.

    /MrP

    [Reply]

  8. please help!!
    the menu.lst file does open. but it’s a blank page.. what do i do now?? i am new to ubuntu.. please do reply soon!!

    [Reply]

  9. menu.lst file will not be present in newer versions of grub.So if u try to open it you will get a blank file.
    proceed as follows.
    1.open /boot/grub/grub.cfg as root user.
    2.type sudo gedit /boot/grubgrub.cfg in terminal to open it in write mode.
    3.Now you can see something called menuentry which is nothing but different booting options like ubuntu generic,ubuntu memtest,windows etc. which is repeated 5 to 6 times in the format
    ###some text
    menu entry
    //some text related to menu entry
    ###some text
    (Ctrl+f and type menuentry to find it)
    4.Find the para which has menuentry with windows7/xp/vista(depending on your windows version).generally it will be the last entry.
    5.Cut that para i.e., from
    ###some text
    menuentry windows 7
    //some related text
    ###some text
    and paste it just before the para of ubuntu generic menuentry i.e., just above its ###.
    6.save it.

    Note:Keep a copy of the original file in case u want to restore the default.but by this technique u can change the boot order as u like.

    [Reply]

  10. @Sai Ram Kodipyaka, thanks buddy.. your info was pretty helpful.. I could set my default OS to windows.. It worked!!!! :)

    [Reply]

  11. I’m a newb running Ubuntu 10.4, and of course, menu.lst was blank. Go to ‘Ubuntu software center’ under Applications and search for ‘startup.’ You will see startup manager in the list. Install this and then open it (look under system – Administration). The second option down is default boot.

    Thanks for all you who post answers and make it easier for us go learn!!!

    [Reply]

Leave a comment

Your email address will not be published. Required fields are marked *