或diskpart
Microsoft DiskPart version 6.1.7601
Copyright (C) 1999-2008 Microsoft Corporation.
On computer: HOSTNAME
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 465 GB 0 B
DISKPART> sel disk 0
Disk 0 is now the selected disk.
DISKPART> list part
Partition ### Type Size Offset
------------- ---------------- ------- -------
Partition 1 Primary 39 MB 31 KB
Partition 2 Primary 10 GB 40 MB
Partition 3 Primary 455 GB 10 GB
DISKPART> sel part 1
Partition 1 is now the selected partition.
DISKPART> det part
Partition 1
Type : 17
Hidden: Yes
Active: No
Offset in Bytes: 32256
There is no volume associated with this partition.
DISKPART> sel part 2
Partition 2 is now the selected partition.
DISKPART> det part
Partition 2
Type : 17
Hidden: Yes
Active: Yes
Offset in Bytes: 41943040
There is no volume associated with this partition.
DISKPART> sel part 3
Partition 3 is now the selected partition.
DISKPART> det part
Partition 3
Type : 07
Hidden: No
Active: No
Offset in Bytes: 11096031232
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
* Volume 1 C OS NTFS Partition 455 GB Healthy Boot
DISKPART> sel part 2
Partition 2 is now the selected partition.
DISKPART> set id=07
DiskPart successfully set the partition ID.
DISKPART> assign letter=z:
DiskPart successfully assigned the drive letter or mount point.
要撤销它
DISKPART> set id=17 OVERRIDE