DiskPart
Basic usage of diskpart on windows.
EFI
http://linuxbsdos.com/2015/09/05/how-to-delete-grub-files-from-a-boot-efi-partition-in-windows-10/
% These commands are used to identify and select the hard drive
diskpart
list disk
sel disk
% These commands are used to list the partitions, select the Boot EFI partition,
% then assign it a drive letter
list vol
sel vol 2
assign letter=D:
exit
% These commands are used to change into the Boot EFI folder and delete the GRUB folder
cd /d D:
ls
ls EFI
cd EFI
ls
rmdir /s ubuntu
diskpart
select disk 0
select partition 3
delete partition override
exit
Windows
Windows 查看磁盘分区格式
- 按下
Win+R
打开运行,输入cmd
,打开命令提示符; - 输入
diskpart
按回车执行,切换到 DISKPART 命令,输入list disk
,按回车; - 查看最后一列的GPT,如果有*号则为GPT,如果没有则为MBR。