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?
I picked the grub-set-default solution as the easiest and most elegant: Here's /boot/grub/menu.lst most important parts:
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
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.