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 have a spare HDD sitting around I'd like to put Win XP on; it's currently formatted/mounted as an extra NTFS volume on my Ubuntu 9.10 install.

If I install XP on the drive, will it wipe-out/modify my existing MBR? I haven't dealt with Windows in so long, I can't remember how it behaves when dual-booting from a separate disk.

Here's the setup I have:

  • Primary Drive: 3-partition, ext4: /home, /, swap
  • Secondary Drive: 1-partition, NTFS

My concern is wiping out the MBR which allows me to boot into my Linux system. Since it's being installed on a separate volume, I would expect my Linux data to be safe; I'm just not sure if it will screw up the MBR, causing me more headaches when trying to boot into Linux.

share|improve this question
add comment

3 Answers

up vote 4 down vote accepted

The best thing to do would be disconnect your primary drive during the installation. WinXP's installer will write itself to the MBR, but after the installation is complete, your BIOS should boot to your reconnected primary drive and you'll get the Grub menu.

Add this to Grub v1's menu.lst file to add a menu entry for the new installation (assuming WinXP installed on the secondary drive's first partition):

title          Windows XP Pro
root           (hd1,0)
makeactive
chainloader    +1

Note you may need to update Grub's devices.map file to specify what device (hd1,0) is.

share|improve this answer
    
+1 - that's a good idea. My BIOS is setup to boot the primary drive and the MBR would be untouched. –  bedwyr Jan 3 '10 at 17:47
    
believe me, i learned this trick a long time ago. second or third time i had to recover a LILO (yes, LILO) installation due to a Windows reinstall grabbing the MBR... –  quack quixote Jan 3 '10 at 17:49
1  
This worked perfectly, though since I'm using Grub 2.0, I ran update-grub2 and it picked up the Windows disk w/out any manual intervention. Thanks again! –  bedwyr Jan 9 '10 at 16:18
add comment

Unfortunately, I am not sure if installing Windows this way will mess up your MBR (I'm more of a Linux user myself ;))

However, you should be able to recover the MBR in case this happens by following the guide available at https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows

Hope this helps.

share|improve this answer
    
+1 - thanks for the link. It's good to know I can recover if anything goes wrong :) –  bedwyr Jan 3 '10 at 17:48
add comment

You should have no problem installing XP to a slave drive, as long as the BIOS is set to boot from the first hard disk. The MBR should be written to the disk you specify when installing.

share|improve this answer
    
Just to clarify: all I would need to do (after installing XP) is configure GRUB on my Linux system to point to my new Windows install? –  bedwyr Jan 3 '10 at 17:43
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.