Delete Ubuntu from dual boot Windows 8.1 in GPT disk [duplicate]
Solution 1:
Press Win + R to get the run box, type diskmgmt.msc
and press enter.
- Just click with right mouse button on the Ubuntu partition, and choose to Delete Volume.
If Windows 8.1 was preinstalled on your computer, please ensure you don't remove recovery partitions, etc.
The space formerly occupied by Linux should now say "Unallocated".
And Now Right-click on C: and "Extend Volume" to increase the size of drive C using the unallocated space.(NOTE: You can replace any drive letter instead of C: that you shrink it before for installing Ubuntu)
- If you were using grub to dual-boot (most probably), then you may need the windows 8.1 CD to fix the boot manager and make Windows 8.1 bootable again.
How to fix your boot manager :
- boot your system using windows 8.1 installation CD or flash drive
- go to "repair your system"
- use command prompt (Troubleshoot ► Advanced Options ► Command Prompt)
- type
bootrec /fixboot
then hit enter - type
bootrec /fixmbr
then hit enter - exit
This time your system will boot directly into windows.
This is the safe way to uninstall Ubuntu.