Erase Ubuntu

If you've decided that Ubuntu is no longer the right operating system for you, then you might be wondering how to go about deleting it from your system. Removing Ubuntu when it's the only operating system on your computer is fairly straightforward, but things get a little more complicated if you have Windows installed alongside it. Follow this guide to remove Ubuntu either way.

Steps

Removing Ubuntu when Dual-Booting with Windows

  1. Insert your Windows installation disc into your computer. This could also be labeled as a Recovery disc. If you don’t have an installation or recovery disc, you can Create a Recovery Disk in Windows.
  2. Boot from the CD. In order to boot from your recovery disc, you’ll need to set your BIOS to boot from your CD/DVD drive. When the computer first starts up, press the BIOS setup key. This is typically F2, F10, F12, or Del. Navigate to the Boot menu and select your CD/DVD drive. Once you’ve selected it, save and reboot your computer.
  3. Open the command prompt. From the Recovery Disc’s main menu, select the Command Prompt option. If you are using an Installation Disc, select “Repair your computer”, which should open the Command Prompt.
  4. Fix your Master Boot Record. Performing this command will remove the dual-boot option when you start your computer, and boot straight into Windows. Enter the following command at the Command Prompt:
    bootrec /fixmbr
  5. Reboot your computer. When you reboot, you should not see the option to select Ubuntu. Instead, you will be taken directly into Windows.
  6. Open Disk Management. Once in Windows, it’s time to get rid of the old Ubuntu installation and reclaim the hard disk space. Press Start, and the right-click on Computer/My Computer. Select Manage and then click Disk Management in the left frame of the Computer Management window.
    • In Windows 8, press the Windows key + X and select Disk Management from the menu.
  7. Delete your Ubuntu partitions. Right-click on your Ubuntu partitions and select Delete. Make sure that you are deleting the correct partition. Once the partition is deleted, it will become unallocated space. Right-click on your Windows partition and select Extend partition. Select the free space just created to add it to your Windows installation.[1]

Removing Ubuntu from a Single-Boot System

  1. Insert the disc of the operating system you want to install. When Ubuntu is the only operating system of the computer, you can remove it by using an operating system install disc for any operating system. Once you’ve inserted it, restart the computer and boot from CD, as outlined in Step 2 above.
  2. Delete the Ubuntu partition. Once you start the installation process for the new operating system, you are given the opportunity to create and delete partitions on your hard drive. Select your Ubuntu partition and delete it. This will return the partition to unallocated space.
  3. Continue installing the operating system, or remove the disc and power down the computer. Once the partition is deleted, Ubuntu has been successfully removed from the computer. You can now install a new operating system such as Windows 7 or Windows 8.
    • If you choose not to install the operating system, your computer will be unusable until one is installed.

Tips

  • If you are dual-booting multiple Linux distros, you should boot into the one you wish to keep, and delete the Ubuntu partition from there. Then you will need to update/reinstall the GRUB or LILO boot loader. Asking how to do that on the support forum for the distro you wish to keep will solve that in no time for you.

Related Articles

Sources and Citations