Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
How can I install Windows 7 after I've installed Ubuntu?

I want to install Windows 7 on a machine where I have already Ubuntu 12.04 installed, because I need Visual studio 2010, which can't be installed in Ubuntu. I want to install Windows 7 in a way that, I don't lose any data on Ubuntu.

How can I do this?

share|improve this question

marked as duplicate by Eliah Kagan, nitstorm, Jorge Castro, Ringtail, Mitch Sep 17 '12 at 6:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers 2

  1. First do a backup of your Ubuntu data (/home, /etc, /opt /usr/local)
  2. Next create a partition for Win 7 in Ubuntu using gparted
  3. Boot your Win 7 CD/DVD and choose the newly created partition for Win 7
  4. After finishing the Win 7 Installation you need to restore the MBR
    See here how to do it.
share|improve this answer

An option you have is to install a Virtual Machine something like Virtual Box (which I find the best) but there are others like Xen or VMware.

Virtual Box is available in the Software Centre

A Virtual machine is self-contained environment that is accessible in Ubuntu once installed. You can intall Windows 7 with out the hassle of partitioning and dual booting and without risking damaging changes to the host operating system. There are pros and cons to this method and the cons will be dependant on how memory hungry you Visual Studio 2010 is.

If you need to explore this method further Ubuntu Community Documantation is a good place to start, just click this link

share|improve this answer

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