I want to completely remove Ubuntu from my system. But if I delete the partition, the Grub files will be deleted and that will leave me "Bootloader-less". How can I workaround this?
Asked
Active
Viewed 2,882 times
3 Answers
1
Removing Ubuntu and fixing the Windows bootloader
Boot up a live CD or USB and delete your Ubuntu (ext4 and swap) partitions using GParted. You can expand your Windows partitions at this point as well. Then, open up the terminal and use these commands:
- sudo apt-get install lilo
- sudo lilo -M /dev/sda mbr
When you reboot, you should boot straight into your Windows install.
1
This is the simpliest method I can think of:
- Boot to Windows;
- Download mbrfix from
http://download.cnet.com/MbrFix/3000-2094_4-10485990.html; - Extract the package and copy mbrfix.exe to your favorite directory;
- Open a command prompt as an administrator, navigate to your favorite directory (
cd); - Enter the command:
mbrfix /drive 0 fixmbrand confirm. - Reboot.
Now the Windows bootloader is back. You can mess up the Ubuntu partition at will.
Dawei
- 81