Tips - Removing GRUB Bootloader and/or Linux and Restoring Windows Bootloader
Linux is a wonderful operating system, but you might want to remove Linux from your PC due to some space constraints or because you're used to Windows and don't want Linux.Whatever the reasons are, unless you've installed Linux inside Windows(Like with Ubuntu's WUBI installer), you usually have the GRUB bootloader to load your Linux/Windows operating systems. Removing Linux without having a full knowledge of the problems that may arise with a corrupt GRUB can be a pain in the ass(trust me, I did it once and suffered a lot). Here's how you can achieve it by spending not more than 5 minutes.
You should have the following ready before you start:
Your windows installation disc
Your PC/Laptop(Obvious)
The steps:
Right Click on My computer and select "Manage"
Go to Disk Management, select the partition(s) that have Linux and format them completely.
Insert your Windows Installation media into the optical drive.
Restart your computer.
Boot into your installation disc, select language,keyboard options and click Next.
Select Repair Computer.(Bottom Corner)
Select the option Use recovery tools and click Next.
Select Command Prompt
Type
diskpart
. Press Enter.Type
select disk 0
and press Enter.Type
list volume
and press Enter.Note down the drive letter of your optical drive.
Type
exit
and press Enter.Type your
(DVD drive letter):
and press Enter. Example:G:
Type
cd boot
and press Enter.Type
dir
and press Enter.Type
bootsect /nt60 SYS /mbr
and press Enter.Type
exit
and press Enter.Restart your system and enjoy your stay with the cursed Windows :P