1

Possible Duplicate:
How do I set Windows to boot as the default in the boot loader?

How can I make Windows boot first?

3
  • There is a box up there called search, Use it this has been answered already. Jan 27, 2012 at 5:39
  • 2
    @UriHerrera If this has been answered already, then shouldn't you link to the duplicate? Jan 27, 2012 at 7:05
  • @WarriorIng64 Links won't show up correctly on my mobile and i can't seem to be able to click the "Vote to close" button. Jan 27, 2012 at 8:00

2 Answers 2

1

(When I searched "make windows boot first" in the askubuntu search box, I had trouble finding a post that answered this question, so I'll answer it here).

I'm going to presume that you are using grub (if you don't know what it is, you are probably using it).

You can change the boot order by editing the menu.lst file located in /boot/grub/.

When you look into menu.lst, you want to scroll down to blocks of text that look something like the following:

title        ....
root         ....
kernel       ....
...
initrd       ....

The block that begins with

title        Windows ...
...

Is the windows entry that shows up on boot. If you want this to be both the first and default entry, you can copy the entire block of text, and paste it just right before the first "title ..." block.

You will have to do this as root (so try gksudo gedit /boot/grub/menu.lst and make the edits). When you reboot, by default you will boot into windows. Note that because reading Linux filesystems from Windows requires more setup, it is probably best to do this in Linux.

Edit:

Actually after a little more searching, I think the suggestion in this post is probably a lot safer.

1
  • 6
    If he has installed any recent version of Ubuntu, he is likely using Grub 2, which doesn't use the menu.lst file (it uses grub.cfg instead, which has a different format). So this answer might not help. Jan 27, 2012 at 7:06
0
sudo su
cd /etc/grub.d/
mv 40_custom 08_custom
update-grub

this will pull Windows entry in the boot loader on top

1
  • More recently the file is 30_os-prober so it would be mv 30_os-prober 08_os-prober to preserve the name
    – maxpolk
    Jun 2, 2016 at 14:28

Not the answer you're looking for? Browse other questions tagged .