How to remove Ubuntu and put Windows back ON?
Tags: ubuntu, diskwindows
Published: 2021-11-25 10:06:52

---
title: How to remove Ubuntu and put Windows back ON?
published: true
date: 2021-11-22 16:14:43 UTC
tags: Ubuntu,diskwindows
canonical_url: https://stackallflow.com/ubuntu/how-to-remove-ubuntu-and-put-windows-back-on/
---

<header>
<p><span style="font-size: 1.2em; color: initial;">disk</span><span style="font-size: 1.2em; color: initial;">windows</span></p>
</header>

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.

How do I remove Ubuntu and reinstall Windows?

* * *

**_Editor’s note_** _: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot._

#### Accepted Answer

If you have a single-boot system with only Ubuntu installed, you can install Windows directly and override Ubuntu completely. To remove Ubuntu from a Ubuntu/Windows dual boot system, you will first need to replace the GRUB bootloader with the Windows bootloader. Then, you would need to remove the Ubuntu partitions.

The first step can be done with a Windows Recovery DVD/Installation DVD or a Ubuntu Live DVD. If you have a newer Dell laptop (such as the Dell Inspiron), you would need to do so by changing the boot sequence in the UEFI settings, which will be discussed later.

## Using Windows Recovery or Installation Media

If you don’t have a Windows recovery or installation media, you can download official ISO files for Windows 10, Windows 8, or Windows 7 from the [Microsoft Download Center](https://www.microsoft.com/en-ca/software-download/) and burn them on a DVD or a USB drive. Windows will only install as an evaluation copy for 30 days without a genuine product key.

1. Grab a Windows recovery or installation media and boot from it. You should see this or a similar screen on a **recovery media**.

![System Recovery Options dialog](https://i.stack.imgur.com/LwEoF.png)

You should see this on an **installation media**. Click “Repair your computer” and you should see a screen like the first image.

![Windows Setup](https://i.stack.imgur.com/ZlNhc.png)

2. Open the **Command Prompt** , then type `bootrec /fixmbr` into the Command Prompt.

![Command prompt FIXMBR](https://i.stack.imgur.com/eGE2E.png)

3. Reboot and boot into Windows. Then follow the steps below to remove the Ubuntu partitions.

* * *

## Using a Ubuntu Live DVD and Boot Repair

If you don’t have a Windows recovery CD or you are constrained to download and burn the ISO files mentioned before, you can use [Boot-repair](http://sourceforge.net/p/boot-repair/home/Home/). It is a tool that fixes most boot problems(Windows or Ubuntu). I suggest using a Windows CD if possible.

1. Boot from a Ubuntu Live DVD or USB
2. Type these lines in the terminal one line at a time.
```
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install boot-repair

```
3. ![Boot repair dialog](https://i.stack.imgur.com/XZ7s4.png)

* * *

## Changing the Boot Sequence in the UEFI settings of a Dell computer

Newer Dell laptops like the Dell Inspiron requires the bootloader order to be changed directly in the UEFI settings. This can be done with the following steps.

- Pressing <kbd>F12</kbd> when the Dell logo appears.
- Go to `General` → `Boot Sequence`. Under the Boot Sequence section, select `Ubuntu`, then click `Delete Boot Option`.
- Reboot your computer.

* * *

## Deleting Ubuntu Partitions

After the previous steps, your computer should boot directly into Windows.

1. ![Disk Management](https://i.stack.imgur.com/9I2Az.png)

2. Right-click your Ubuntu partitions and select “Delete”. **Check before you delete!**
3. ![Extend Volume Wizard](https://i.stack.imgur.com/UGI2Y.png)

4. Done!

Note from [Tanner](https://askubuntu.com/users/76265/tanner): If you are using an extended partition, you might have to remove the big extended partition to make the space unallocated.

The post [How to remove Ubuntu and put Windows back ON?](https://stackallflow.com/ubuntu/how-to-remove-ubuntu-and-put-windows-back-on/) appeared first on [Stack All Flow](https://stackallflow.com).