1

I want to uninstall Ubuntu, so I need to delete its partition.

I saw that many people asked this before. For example: How to find out which partition is Ubuntu installed on?. I followed the instructions there and here's a screenshot of the terminal after typing the suggested command (df):

df output in gnome terminal

But this doesn't tell me anything...

This has also been discussed before Uninstalling Ubuntu. Which partitions to delete? and the answer was: EFI and primary. But I have a lot of primary partitions and I'm not sure which one to delete.

Here's a screenshot of Disk Management in Windows:

list of partitions

Here's a GParted screenshot:

many partitions

So can anybody tell me which the Ubuntu partitions are? (I numbered them from left to right, so to make it easy just tell me numbers please)

Zanna
  • 72,312
Alaa M.
  • 183
  • 2
  • 2
  • 10

4 Answers4

2

From the output of df command what I can see is the size of your Ubuntu partition is 47930248 KB which is equal to 46 GB approximately.

From this you can conclude that it is your 5th partition(partition which you have marked 5) on which Ubuntu is installed.

But I will suggest you to use gparted by running Ubuntu in live mode.

g_p
  • 19,034
  • 6
  • 59
  • 69
2

Do not remove /dev/sda1 (The 1st partition) The EFI partition is part of UEFI and is used by both Windows and Ubuntu. If you delete it, the computer won't boot.

Comparing the Gparted and Disk Management screenshots, you want to delete 5th, 6th, and 7th partition as displayed in Windows Disk Management. Or /dev/sda9, /dev/sda10, /dev/sda11 as displayed in gparted.

You will still have to remove GRUB after removing those partitions.

See How to remove Ubuntu and put Windows back on? for how to easily remove Ubuntu.

Finally, remove the Ubuntu boot entry (or entries) in the UEFI boot manager in the image below:

enter image description here

See How do I remove "Ubuntu" in the bios boot menu? (UEFI)

You will need to boot from Ubuntu Live DVD/USB to temporarily install efibootmgr.

In the Live boot, (Use Try Ubuntu without installing) Open a terminal by pressing Cntrl+Alt+T: and enter the following commands:

sudo apt-get install efibootmgr
sudo modprobe efivars
sudo efibootmgr

This will show you which entries in the UEFI boot manager refers to the old Ubuntu install.

To remove entry number X enter:

sudo efibootmgr -b X -B 

Replace X with the correct number.

Repeat the last two commands if there are more than one entries.

Note: I have removed the part about OS Uninstaller, as some people seems to have problem with it.

Hope this helps

user68186
  • 37,461
1

According to your GParted screenshot and what you have told us, you can see that the Ubuntu installation root is installed on /dev/sda9. You can tell this by looking in the "mount point" column and seeing the "/", which is the root. You can also tell that your /home is on /dev/sda10 by looking in the same column.

Both of which are the only ext4 (not that you cannot install using NTFS), but they are the only ones to match up with your mount points.

Also, the rest of the partitions are either NTFS (which is what Windows uses) and are matched with Microsoft flags, therefore you know they are not the Ubuntu install, or they are unknown.

The answer is your Ubuntu installation is using /dev/sda9 for the root, /dev/sda10 for home, and /dev/sda11 is used for swap.

0

Windows and Linux name partitions very differently.

To identify your partitions from Linux either use gparted (graphical tool) or fdisk (command line)

fdisk -l

From what you posted, your root partition for Ubuntu is /dev/sda9

sda = first hard drive

sda9 = 9th partition

Hard to know what is on your other partitions from what you posted.

I suggest you identify your partitions in Linux as Windows does not identify the contents of your partitons as windows can not read linux partition.

If you wish to do this in windows , ask on a windows forums.

See also https://wiki.archlinux.org/index.php/partitioning

Panther
  • 104,528