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