This friend of mine had installed Windows and Fedora side by side on his laptop and wanted to remove the Fedora installation. Removing Fedora is quite easy. All you have to do is to go to Disk Management from Windows (Run -> diskmgmt.msc), find the Fedora partitions, delete them and format as new drives.
However, this also removes the MBR of the machine. To restore the MBR, the accepted method is to use a Windows CD. We didn’t have that luxury. Fortunately we had a Ubuntu Live USB in hand.
The method to fix the MBR is:
1. Boot the machine using the Live USB/CD.
2. Install lilo
sudo apt-get install lilo
3. Fix the MBR using lilo using the command:
sudo lilo -M /dev/sda mbr
Works like a charm!