• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to make grub load windows by default?

 
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Jane Jukowsky
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, worked like a charm.
 
reply
    Bookmark Topic Watch Topic
  • New Topic