Remove ubuntu installed on Windows 10 machine

When setting up Jetson TX2, AGX Xavier, I decided to remove ubuntu18.04 that was temporarily needed from the win10 machine, so a memorandum

For dual boot, the removal procedure is important.

If you do not delete ubuntu according to the procedure, GRUB will die, so be careful. It is NG to delete the partition

Step 1: Delete ubuntu with bcdedit -Run the command prompt as an administrator and enter the following command

bcdedit /enum firmware

Information about the firmware will be returned, so look for the firmware application that describes ubuntu.

Firmware application(101fffff
--------------------------------
identifier              {bc999fa4-b20c-11e9-93c3-806e6f6e6963}
device                  partition=\Device\HarddiskVolume1
path                    \EFI\UBUNTU\SHIMX64.EFI
description             ubuntu

-Right-click and copy the {~} of the above identifier displayed as ubuntu together with the parentheses. Do the following

bcdedit /delete {~}

The message "This operation was completed successfully." Is displayed. Execute bcdedit / enum firmware again and check if ubuntu has disappeared.

After the deletion is completed, restart the OS and check if ubuntu is displayed at startup.

Step 2: Delete partition

run diskpart

C:\WINDOWS\system32>diskpart

Microsoft DiskPart version 10.0.17134.1

Copyright (C) Microsoft Corporation.
computer: ---------

Check the disc list

DISKPART> list disk

Disk State Size Free Dyna GPT
  ###Mick
  ------------  -------------  -------  -------  ---  ---
Disk 0 Online 476 GB 0 B*

Select disk 0

DISKPART> sel disk 0

Disk 0 has been selected.

Check the volume list Volume 3 SYSTEM label Fs: FAT32 is a volume containing ubuntu, so

DISKPART> list vol

  Volume ###  Ltr Label        Fs    Type        Size     Status     Info
  ----------  --- -----------  ----  ----------  -------  ---------  --------
  Volume 0     D                       DVD-ROM 0 B without media
Volume 1 C Windows NTFS Partition 413 GB Normal boot
  Volume 2         WinRE_DRV NTFS Partition 1000 MB Normal
Volume 3 SYSTEM FAT32 Partition 260 MB Normal system

Check volume 3

DISKPART> sel vol 3

Volume 3 is selected.

Select and mount UEFI system partition

DISKPART> assign letter=X:

DiskPart has successfully assigned a drive letter or mount point.
DISKPART> exit

DiskPart is closed...

Go to X dir

C:\WINDOWS\system32>cd /d X:

X:\>dir
The volume label for drive X is SYSTEM
Volume serial number is xxxx-xxxx

 X:\Directory

2019/07/26  06:20    <DIR>          EFI
2018/07/18  04:18    <DIR>          BOOT
0 files 0 bytes
2 directories 233,144,320 bytes of free space

Looking into EFI ...

X:\>cd EFI

There was ubuntu.

X:\EFI>dir
The volume label for drive X is SYSTEM
Volume serial number is xxxx-xxxx

 X:\EFI directory

2018/07/18  04:18    <DIR>          .
2018/07/18  04:18    <DIR>          ..
2018/07/18  04:18    <DIR>          Microsoft
2019/07/26  06:21    <DIR>          Boot
2019/07/26  06:21    <DIR>          ubuntu
0 files 0 bytes
5 directories 233,144,320 bytes of free space

Delete with rmdir / S

X:\EFI>rmdir /S ubuntu
ubuntu, are you sure(Y/N)? y

Check if ubuntu disappears with the dir command again

X:\EFI>dir
The volume label for drive X is SYSTEM
Volume serial number is xxxx-xxxx

 X:\EFI directory

2018/07/18  04:18    <DIR>          .
2018/07/18  04:18    <DIR>          ..
2018/07/18  04:18    <DIR>          Microsoft
2019/07/26  06:21    <DIR>          Boot
0 files 0 bytes
4 directories 236,957,696 bytes of free space

I was able to confirm that ubuntu was successfully deleted.

Reboot the OS and you're done.

Recommended Posts

Remove ubuntu installed on Windows 10 machine
I installed tensorRT on Ubuntu 18.04
Run Jupyter on Ubuntu on Windows
I installed ROS on Ubuntu 18.04
Operate ubuntu on VScode (windows10)
Run XGBoost on Bash on Ubuntu on Windows
RTKLIB 2.4.3 CLI version GUI version installed on Ubuntu 18.04
[Note] Procedures for installing Ubuntu on Windows 10
I installed TensorFlow (GPU version) on Ubuntu
Create a Linux virtual machine on Windows
Python on Windows
Shebang on Ubuntu 20.04
Notes for using TensorFlow on Bash on Ubuntu on Windows
Install TensorFlow on Ubuntu
Run Tensorflow from Jupyter Notebook on Bash on Ubuntu on Windows
Pylint on Windows Atom
Linux (WSL) on Windows
Install PySide2 on Ubuntu
Use pyvenv on Windows
Install JModelica on Ubuntu
Anaconda on Windows Terminal
Install Anaconda on Windows 10
python basic on windows ②
Install python on windows
Install pycuda on Windows10
Build TensorFlow on Windows
Try FEniCS on Windows!
Build XGBoost on Windows
Install pygraphviz on Windows 10
Use Ansible on Windows
build Python on Ubuntu
Try Poerty on Windows
Install Python 3.3 on Ubuntu 12.04
Install Chainer 1.5.0 on Windows
Installing pyenv on ubuntu 16.04
Use QuTiP on Windows
Install Theano on Ubuntu 12.04
Use pip on Windows
Install angr on Ubuntu 18.04
Install pip / pip3 on Ubuntu
Install Bash on Ubuntu on Windows, Ruby, Python, Jupyter, etc.
Build a machine learning environment natively on Windows 10 (x64)
Set up python and machine learning libraries on Ubuntu
I installed Ubuntu on a USB stick on a dual boot PC
I installed the automatic machine learning library auto-sklearn on centos7
I installed FreeCAD on Linux (Ubuntu) and created an icon
Use Xming to launch an Ubuntu GUI application on Windows.
Install Numpy on virtualenv on Windows
Set-enable Python virtualenv on Windows
Set up Python 3.4 on Ubuntu
Run Openpose on Python (Windows)
Use matplotlib on Ubuntu 12 & Python
SoftwareRAID 0 on SereneLinux (Ubuntu 18.04 Desktop)
Install watchdog on Windows + Python 3.3
Install Win-Kex (kali-linux) on Windows 10.
Before trying Veriloggen on Windows
Install cvxpy on windows, Anaconda
Python + Kivy development on Windows
USB Wifi on Ubuntu 20.04LTS
Set matplotlib font on ubuntu
Prepare Chainer environment on Windows