8

I was following this guide: http://www.howtogeek.com/howto/ubuntu/set-windows-as-default-os-when-dual-booting-ubuntu/ in order to make windows the default os when I boot the computer but the problem is that the file which opens when I run the commend which manshened in the text is empty and dosn't have any of the lines it should have according to the guide so can anybody help and tell me how to see the text or give another way of making windows 7 the default os?

Jorge Castro
  • 71,754
  • 1
    There's a more complete answer at http://askubuntu.com/questions/52963/how-do-i-set-windows-to-boot-as-the-default-in-the-boot-loader – Jeremy Bicha May 18 '13 at 16:44

6 Answers6

12

Run this: sudo apt-get install startupmanager. Then you can launch startupmanager which gives you a GUI to change many settings, including default OS to boot.

evgeny
  • 9,575
6

What you also can do is:

sudo mv /etc/grub.d/30_os-prober /etc/grub.d/09_os-prober
sudo update-grub

Now Windows (or any other non-linux OS) is always on top of the list and you don't have to care about the menu position if there is a new kernel.

sroecker
  • 2,560
0

you can do it yourself :

gksudo gedit /etc/default/grub

This file contains information formerly contained in the upper section of Grub Legacy's menu.lst and items contained on the end of the kernel line. The items in this file can be edited by a user with administrator (root) privileges.

Quote:

GRUB_DEFAULT=0

  • GRUB_DEFAULT - Sets the default menu entry. Entries may be numeric

    • GRUB_DEFAULT=0 - Sets the default menu entry by menu position. As Grub Legacy, the first "menuentry" in /boot/grub/grub.cfg is 0, the second is 1, etc.

after that do that :

sudo update-grub

hhlp
  • 42,002
-1

I guess the file menu.lst does not exist in newer versions of ubuntu. Even I couldn't find it when I was in your situation. I suggest you install startup-manager from synaptic which offers an easy to use and intuitive GUI.

Chethan S.
  • 2,864
-2

hey this solution works for sure. try this link http://www.youtube.com/watch?v=dr4lYivo4rU

Roshan
  • 1
-2

Alternative: Edit manually /boot/grub/grub.cfg and change the value of "default" entry:

set default="0"

"0" means first OS entry at grub.cfg

borjacampina
  • 1,054
  • 1
    The very first line of grub.cfg says "DO NOT EDIT THIS FILE." It says that because that file is autogenerated and any changes you make will be lost the next time it is generated which happens every time grub or your kernel is updated. Instead follow sroecker's advice. – Jeremy Bicha Mar 15 '11 at 11:28