Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I purchased a PC six months ago for work related tasks. I do 95% of my work on Ubuntu (web development). Now, I want to install Windows on another partition to play a few games on my relax time. Which steps should I follow? Any suggestions? Every guide I found suggest to install Windows and, after that, Ubuntu. Being this my main development machine, I cannot afford the risk of wiping everything.

share|improve this question
Related (probably not quite a duplicate, but the procedures for restoring GRUB to the MBR are the same): How can I repair grub? (How to get Ubuntu back after installing Windows?) –  Eliah Kagan Aug 13 '13 at 4:17

2 Answers 2

First, back up your data. Keep in mind, when installing an OS, over writing data is often a mouse click away.

Second, boot the ubuntu desktop CD, resize your partitions, and make a NTFS partition for Windows.

Then install Windows into the NTFS partitions. You may need to find drivers for your hardware.

Then boot the Ubuntu CD again and re-install grub. You can do this graphically with boot-repair

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

See for details.

enter image description here

share|improve this answer
Shouldn't sudo update-grub be enough? Why the need for the repair tool? –  bioShark Jan 4 '12 at 23:12
You can install grub from the command line if you wish. I choose the graphical method is advised on the ubuntu wiki…. –  bodhi.zazen Jan 4 '12 at 23:19
It's not me with the issue, I'm just a bystander checking new ideas :). But all in all, good tip about the UI Tool. –  bioShark Jan 4 '12 at 23:20
boot-repair seems popular, check it out. In addition to re-installing grub you can set a few options. –  bodhi.zazen Jan 4 '12 at 23:22
boot-repair is the de facto tool for the job, if a user is asking how to install Windows after installing Linux a GUI tool is the way to go ;) –  Bruno Pereira Mar 14 '12 at 9:49

Check out this

As pointed out in that answer it's impossible to partition 100% safely, consider a backup if you can't afford any risks. Anyways it is quite unlikely something will go wrong, I did what I wrote and everything went well.

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.