Tips, tricks, cheatsheets
Installing Windows after Ubuntu is not the recommended process for a dual boot Windows and Ubuntu system, but it is possible.
Make sure that the 50GB free space is available, resizing your Ubuntu by using gParted if necessary.
Use gParted or Disk Utility to format the the free space as NTFS, this prevents Windows 7 from creating an additional boot partition in addition to the “C” drive.
Boot to the Windows DVD installer and install Windows on the NTFS partition. Upon reboot, Windows will automatically boot and you won’t see the grub menu allowing you to choose Ubuntu, because the Windows bootloader has replaced grub.
Run Ubuntu from LiveCD or LiveUSB and install boot-repair.
$ sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update $ sudo apt-get install -y boot-repair && boot-repair
After installation, boot-repair will automatically launch, if is doesn’t, launch it via Dash.
Make sure to select recommended repair to repair grub. Reboot and that’s it.