aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 5779
    
    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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make grub load windows by default?
 
Similar Threads
Linux Ubuntu Multi-boot
installing linux on laptop
lilo problems
Make Windows my Default OS
Dual Booting Linux with Win 2000