Open up a terminal and give the command:
sudo gedit /boot/grub/menu.lst
This will open up the menu list that GRUB uses to generate the list you see when your computer boots. If you scroll to the bottom of this file, you'll find a list of nicely commented commands for the various OSes on your computer in the order in which they appear in the GRUB loader.
It will look something like this:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYwnl8_keMJBVWWvc3mryjnPMarDyOeY41tWIalcS5OC3hVpfaEGM0eB787DkbUS3uHPWgmr4YAY8e2m1ctJwmQvOy13me6KtfVJTOBiYOoRD-vODLFMKHVINnH7u4OXAWL3tpKgDZORSL/s400/menu_lst_edit2.jpg)
If you scroll all the way to the bottom, it will list your other operating systems, ie. Windows. All you need to do is cut and paste the ENTIRE entry for Windows up to above the Ubuntu entries. You will want to paste it just below the text that says "## ## End Default Options ##." The entire entry you want to copy consists of (at least for Vista)
title Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1
New menu.lst file:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1mJP_ARTYTRyvPrNkbHk061JPF_BFBns_FgQyYdHOemQeErHdKEwH2-f-FgwafqhGNOvC5hM-F1DNNVK6PqtBoEPeq8mkdSoQ0ii0ZZ6yeUtf9gnWjOeR8fxZ_Sx7Oio97VeXaAKBA9vH/s400/menu_lst_edit1.jpg)
Save the menu.lst file, and that's all!
With this entry at the top of the list, when your computer boots it will now default to Windows (or whatever other entry you chose to place first).Note: I have heard that this trick might become switched back when there's a kernel update which edits the menu.lst file. Should this happen to you, it should only take a few moments to change it back.
No comments:
Post a Comment