使用diskpart脚本来建立第二分区范例:
rem == CreatePartitions-UEFI-U3.txt ==
rem == These commands are used with DiskPart to
rem create two partitions
select disk 2
list volume
rem == 1. NEW DATA partition ===============
select volume 5
format quick fs=ntfs label="NEW DATA"
rem == 2. Create U3 partition =========================
select volume 5
create partition primary
rem == 3. NEW UEFI partition =========================
select volume 6
format quick fs=fat32 label="NEW UEFI"
assign letter="T"
RESCAN
exit