7
4
Here's the thing:
I've got dual boot computer with Ubuntu 8.04 and XP Pro. Sometimes I want to switch between these two. To do this I need to issue "Reboot" in Ubuntu, wait for grub menu and choose XP and then wait for it to boot. Instead I would like to issue "boot to Windows" at Ubuntu, walk away to make some tea and come back at XP desktop loaded.
The other way round is easy as Ubuntu is default system to boot. How do I make it work both ways?
Solution:
I picked the grub-set-default solution as the easiest and most elegant:
Here's /boot/grub/menu.lst most important parts:
default saved
(...)
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault 0
makeactive
chainloader +1
XP is 7th entry in my grub menu, so now I should issue:
sudo grub-set-default 6
sudo reboot now
I put these two in /bin/reboot2XP script. After that I put a new activator with command gksu reboot2XP in System menu. Now I should be able to reboot to XP with a click and password entering.
Thanks!
Here's another option that might work: http://bit.ly/cGqtlP
– Ivo Flipse – 2010-04-30T06:10:16.743Maybe instead of booting directly to Windows, you could boot to some program that first changes to grub default back to 0, and only then boots to Windows. That way, the next time you turn on your computer and make tea, it will boot back to Linux. I don't have to expertise to do this, though. I would appreciate someone's help. – psitae – 2017-02-14T07:21:39.387
Interested in anyone finding a solution to this, afaik this can only be done one way like you suggest. – Ivo Flipse – 2009-10-01T17:36:27.313
There must be a better way to do this. I used to have this in my linux distro 10 years ago. I think it was a KDE option and I was running Mandrake (Mandriva's ancestor) or maybe SuSe (openSuSe's ancestor). Reboot would bring up a gui where I could chose the OS to reboot into. Was it a feature no longer available to grub? For all I know I was using lilo, it was a while ago... – terdon – 2012-08-17T18:05:46.697