Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 Jun 13 '11 at 7:39

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

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:

Therefore, the answer is no.

share|improve this answer

Your Answer


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.