Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I wondering whether it is possible to set up a headless machine (application server) in a dual boot configuration. The goal is to have linux (debian lenny or sid) and windows (XP pro, no use upgrading to anything newer because my legacy apps won't work) installed on separate partitions, and be able to reboot into the other OS, all through remote means (RDP / SSH). I can probably figure out how to make grub boot into windows by default, and automate the whole thing for convenience, so the 'reboot into windows from linux' part is covered. I'm worrying about the other side of things though - changing the grub configuration from windows.

An alternative would be two separate bootable harddisks and a way of changing BIOS settings from both linux and windows (again, without actually physically being at the machine).

The machine in question is an audio workstation, so virtual machines are not an option (I need every bit of performance).

share|improve this question
    
I don't think you can get a headless Windows XP box –  TheLQ Sep 5 '10 at 16:30
3  
@TheLQ: for practical purposes, a computer with no screen plugged in, locked in a closet, or a thousand miles away is headless. And none of these characteristics prevents you from running Windows (only maybe from installing it). –  Gilles Sep 5 '10 at 16:53
    
What is the model number and manufacturer of the workstation, or if you built it yourself, the motherboard? It's possible that it may have Intel vPro, which allows remote control over low-level operation of the PC. en.wikipedia.org/wiki/Intel_vPro –  nhinkle Sep 6 '10 at 0:34
add comment

2 Answers 2

up vote 12 down vote accepted

You can have Linux boot by default and, when you want Windows, arrange for it to boot the next time only.

  • For Grub 1, there is an example under “Booting once-only” in the manual. Make menu.lst look like:

    default saved
    
    
    title Linux
    root (hd0,0)
    kernel /vmlinuz root=/dev/sda1 ro
    
    
    title Windows
    root (hd0,1)
    chainloader +1
    savedefault 0
    

    The savedefault 0 line under Windows means that if you boot Windows, the next boot will boot Linux. When you want to boot Windows, from Linux, run grub-set-default 1 and reboot.

  • For Grub 2, there's a utility to do this automatically. You'll need to have GRUB_DEFAULT=saved in /etc/default/grub. Then run grub-reboot Windows from Linux when you want the next boot to be Windows; the boot after that to be Linux.

Another possibility that requires more setup but gives you more flexibility is to install grub on a small FAT partition. Then you can easily edit its configuration file from either operating system.

share|improve this answer
    
The first solution you gave will probably do the trick already. Thanks! –  tdammers Sep 5 '10 at 20:03
add comment

If you enable the special administration console, the XP bootloader is accessible via RS-232.

share|improve this answer
    
Or you could just use the serial and terminal commands with grub legacy. –  Ignacio Vazquez-Abrams Sep 6 '10 at 0:25
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.