How to: Deep Uninstall Ubuntu/Linux Mint 18 from your System

Post a Comment
I get it, Linux distro's are like icecreams to you and you don't stop tasting flavour from each of one new or untasted releases. Sure you can, but its still a thing of whether this icecream has left something on your mouth to create cavity issues. What is meant was that distros are awesome to check get around with customization to perfect your needs but when you don't like one, then obvious answer is to get rid of it. Getting rid off properly is main thing (same as brushing twice a day is, but i know some of you don't). Here i will help you with deep cleaning of your system to remove installed distro completely with 3 steps. I will be working on USB containing live Linux mint 18 iso to remove all distro's or windows OS (if any)

Lets do it.

1.  Creating LIVE Media

First thing first, you need a live USB from which you will be erasing all other OS or distros. You can get a ISO of Linux Mint 18 from this : LinuxMintSarah
Downloaded ? Good ! .You have to burn that ISO which downloaded into a USB or DVD. For USB creating a live bootable version, Universal USB installer is good (i would prefer you this). And for DVD you can try ImgBurn. Just select the ISO, then Select the drive to target install. and do it.

-If you are not clear about how to make live USB check here : LIVEUSB

2.  Booting Up with media and installing OSUninstaller

Now the toothpaste of the story is to boot that created media by BIOS, changing boot order will work perfectly. As it boots, select "Try Linux Mint 18" option from grubloader. Inside Mint ? Good ! ~ Now you have to install OS uninstaller.

you can do that by pressing Ctrl+Alt+T to pull up terminal and run some commands:

sudo add-apt-repository ppa:yannubuntu/boot-repair

Press Enter, then type:

sudo apt-get update; sudo apt-get install -y os-uninstaller && os-uninstaller

As terminals ends up installing OS Uninstaller, it should automatically start so you dont have to find for application. OS Uninstaller will scan for OS present in the Harddisk and will give list about it to perform erase option.


Yup Something like that but you have to be careful what you are choosing because that might lead you to wrong OS erasing. So, Do it carefully.



Nextup is hitting apply will work the magic.

3. Setting up efibootmgr and deleting entry

When you use windows OS and used as Dual Boot then, there are some files created in EFI boot Partition. To avoid ambuigity to next distro to be installed and their files in boot partition, this files has to be deleted and for deleting entry from boot order is what we will see first.

When you are using a Live ISO you already have efibootmgr installed, and if you dont have that then

$> sudo apt-get install efibootmgr

Open up Terminal by Ctrl+Alt+T

Run efibootmgr -v

Which will result in giving this:

$ sudo efibootmgr -v 
Boot0000* Notebook Hard Drive BBS(HD,,0x500) 
Boot0001* Windows Boot Manager 
Boot0004* ubuntu File(EFI\Ubuntu\shimx64.efi)
Boot0005* ubuntu File(EFI\Ubuntu\grubx64.efi)
Boot000A* Internal Hard Disk or Solid State Disk RC
Boot000D* Internal Hard Disk or Solid State Disk RC
Boot000E* Internal Hard Disk or Solid State Disk RC
Boot2001* USB Drive (UEFI) RC
Boot2002* Internal CD/DVD ROM Drive (UEFI) RC
Boot3001* Internal Hard Disk or Solid State Disk RC
 
Then try deleting an entry ubuntu using the following code
 
$ sudo efibootmgr -b 4 -B
$ sudo efibootmgr -b 5 -B

Above command will delete entry and give us

Boot0000* Notebook Hard Drive BBS(HD,,0x500)
Boot0001* Windows Boot Manager  
Boot000A* Internal Hard Disk or Solid State Disk    RC
Boot000D* Internal Hard Disk or Solid State Disk    RC
Boot000E* Internal Hard Disk or Solid State Disk    RC
Boot2001* USB Drive (UEFI)    RC
Boot2002* Internal CD/DVD ROM Drive (UEFI)    RC
Boot3001* Internal Hard Disk or Solid State Disk    RC


Deleting boot entry is done. Moving on to next section of removing ubuntu folder inside which those files which created boot entry is present.

*Your system may result different boot entry result.

4. Deleting ubuntu folder from EFI

Good thing about using Linux Mint distro is to use a utility called Disks which allows us to mount EFI partition in read write mode.

You Just have to search for Disks in Menu of mint.


Open that, and for checking which sda to mount, you have to check from list of partitions by writing command in terminal:

$> sudo fdisk -l

that will give us sda with number after it. see for label EFI partition and mount that through Disks utility.



Here you can see EFI system is  /dev/sda1 . So, we will look for sda1 in DISKS utility and mount that.


By clicking that play button, you can mount it.

After mounting look for EFI/Boot folder and onside that ubuntu folder which is to be deleted.

 In my case, i've already deleted so i cant show you. but you have to find and delete it for sure. Unmount partition after deletion of ubuntu folder.

Thats IT. you're PC is sanitized.
Y Aakash
Hello World, I Dwell with Creative Sketching, Coding, Finance & Blogging by putting my Views and Work.

Related Posts

Post a Comment