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.

My machine has Windows XP and Ubuntu installed. I now want to install Windows 7 by removing Windows XP. Is it possible to do this without affecting my Ubuntu installation?

share|improve this question

migrated from stackoverflow.com Jun 13 '11 at 7:39

This question came from our site for professional and enthusiast programmers.

3 Answers 3

up vote 1 down vote accepted

Yes, it is possible.

First, install Windows 7 on one of your NTFS partitions, then reinstall GRUB from the Ubuntu installation CD. Most likely it will auto-detect your system partitions including Windows. If not, you will need to specify them yourself.

share|improve this answer
    
Can we directly install on windows xp? –  Vikram Jun 13 '11 at 11:04
    
Yes, why not. But I recommend you to reformat xp partition, so it will clean, or else you will end up having a lot of garbage left from the old system. Remember about backups, like bookmarks and other stuff ;) –  Andrejs Cainikovs Jun 13 '11 at 12:30

This is a little tricky - you have to note that Windows 7 will likely overwrite your MBR. If so, all you need to do is to reload your MBR with GRUB - that should do the trick. :)

share|improve this answer
    
I can fix master boot record by using ubuntu recovery CD. So after installation will all my Ubuntu Data will go away or it will be safe? –  Vikram Jun 13 '11 at 7:36

Try to read something about Grub 2.0, which Ubuntu has. Note that installing Windows 7 will remove the Grub bootloader. Read the manual:

https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows

Therefore, the answer is no.

share|improve this answer

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.