When I bought my laptop it had Windows on it. I soon installed Linux as a second operating system on my computer, leaving Windows on it. Recently my hard drive crashed, so when I got a new hard drive the first thing I did was re-install linux. Now I in need of re-installing windows (I already have a copy on DVD). So, how do I install windows?
Asked
Active
Viewed 33 times
1 Answers
0
Short answer: You should use a VM with VirtualBox or Qemu.
If you are willing to risk it:
- Create a partition to host your Windows installation (I use Disks because it comes with my distro, you can also use fdisk, gparted or something else).
- Run your Windows installation by either:
- Restart your PC with the Windows disk.
- Make an image of the Windows disk and run it with Qemu with your hard drive mapped.
qemu -hda /dev/sda -cdrom winxp.iso -boot d --enable-kvm
- Reinstall GRUB following this guide: Reinstalling GRUB
sudo grub-install /dev/sda

JP de la Torre
- 261
- 3
- 6