Ubuntu – Reinstall Windows as a partition after I have Ubuntu

partitioningwindows

I used to have Windows XP on my laptop but switched over to the latest Ubuntu version. Unfortunately, there are programs that I would like to use on the Windows side, but cannot because I have no access to it anymore.

  • What is the way to reinstall Windows as a partition so that I can dual boot?
  • Is the Windows XP install CD and product key the only thing that I need to install Windows XP again?

I don't have a Windows recovery CD 🙁

Any help would be grateful. Thanks!

Best Answer

This has been well documented on the web with many tutorials. It will take as long as it takes to install windows and ubuntu. Which will be about 3 hours. If you want to recover that data on your previous install, that is a different problem.

You might already have the option to boot into windows. Check if these instructions on how Grub the application that loads the different operating system works. It may help you to just display the option to load the system you want windows or Ubuntu at start up.

https://help.ubuntu.com/community/Grub2#Boot Display Behavior

official Ubuntu documentation.

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

Here is a video going through the steps

http://screencasts.ubuntu.com/Installing_Ubuntu_with_Windows_Dual-Boot

If you want to install windows after Ubuntu. You will need to reinstall grub. Windows automatically over writes the MBR, portion of you hard drives partitions and breaks your ability to boot into Ubuntu. These instructions will explain how to fix your boot loader by reinstalling grub.

https://help.ubuntu.com/community/Grub2#Reinstalling GRUB 2

You will still need to create space for your windows installation. Assuming that you install Ubuntu on to your disk with one partition covering the whole disk.If you need to shrink a partition, you need to boot up on a live disk and open gparted. It gives you the option to resize a partition but you can not do this on a mounted or disk. Which is why you need to boot up into a live disk. Here are screen shot of how to do that.

http://gparted.sourceforge.net/larry/resize/resizing.htm

I recommend understanding how partitioning works specifically the MBR or master boot record. You need to understand the limitations such as you can only have 4 primary partitions. An extended partition need to occupy the entire remaining disk space if you want to have more then 4 primary partitions.

http://en.wikipedia.org/wiki/Disk_partitioning