This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes How to make grub load windows by default? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "How to make grub load windows by default?" Watch "How to make grub load windows by default?" New topic
Author

How to make grub load windows by default?

Jane Jukowsky
Ranch Hand

Joined: Mar 28, 2009
Posts: 145
To be precise, I have dual boot Ubuntu/Win XP, and want it to load, by default, whichever OS was loaded last (after asking user). Failing that, the next best thing would be to have Grub to always default to Windows. Any ideas?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Which version of Ubuntu? How this is done in 10.04 is different from how it is done in prior versions.

10.04:
Edit /etc/default/grub, changing this line to reference the Windows entry in the grub menu (this is a zero-relative index, on my laptop Windows is the 8th entry in the menu). You can also set GRUB_SAVEDEFAULT to have grub remember the last entry chosen::



09.10 and earlier:
Edit the /boot/grub/menu.lst (I hope i remembered the name correctly, I don't have an earlier version handy to check) file and change the GRUB_DEFAULT entry in the same way as above.
To have it remember the last entry used, set GRUB_SAVEDEFAULT to true.


JBoss In Action
Jane Jukowsky
Ranch Hand

Joined: Mar 28, 2009
Posts: 145
Thanks, worked like a charm.
 
 
subject: How to make grub load windows by default?
 
Similar Threads
Linux Ubuntu Multi-boot
Make Windows my Default OS
installing linux on laptop
Dual Booting Linux with Win 2000
lilo problems