Home » Questions » Computers [ Ask a new question ]

How to automatically boot from Linux distro to Windows?

How to automatically boot from Linux distro to Windows?

"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?"

Asked by: Guest | Views: 70
Total answers/comments: 2
Guest [Entry]

"I suggest reading this article by PC World on: Auto reboot and Switch Default OS on dual boot XP and Vista and here's an excellent article by HowToGeek on the same subject: Create Shortcuts to Quickly Reboot to the Alternate OS in a Vista/XP Dual-Boot

Update: You should be able to use the grub-set-default command to tell grub to boot into an alternate option just once.

Hope HowToGeek can help edit this post into something that switches between Linux and XP.

After reading quite a bit of the Microsoft
BCD publicaton and doing some
extensive research on .bat files and
bootloaders I came up with this. The
procedure below employs DOS,
Bootloaders and a nifty little program
called wizmo. At this point and time I
have a shortcut on each of my desktops
that once clicked upon automatically
reboots the system to the other OS.
This feature I couldn't live without
as I am constantly using XP for work
stuff and Vista for personal stuff.
So, if you want a nifty auto reboot
button that takes you to your other
OS... READ ON. Dangerous and exciting
walkthrough follows. IF this sounds
like something your going to do, read
this walkthrough a couple of times as
making a mistake can be costly...see
the last disclaimer below.

Disclaimer: Caution be very carefull, messing with your master boot record and bcd store is dangerous and could cause your system not to boot at all, thus leading to more pain and suffering, proceed with caution."
Guest [Entry]

"How about set Windows as your default boot OS and specify a timer for GRUB (see grub timeout)?

sudo gedit /boot/grub/menu.lst

Add or change:

timeout 10

Or some other value. The above will boot your default entry 10 seconds after displaying the boot menu, if you don't select anything else."