diskpart.exe DiskPart 8c549e2ed79fd387970939781df09901

File info

File name: diskpart.exe.mui
Size: 120320 byte
MD5: 8c549e2ed79fd387970939781df09901
SHA1: fa6be766bdd6d573c1c92db9a5189c79a3e8cad2
SHA256: a3246c36259df4d48b97ec1d441876898bc071ecef6c1704694f7299bdc2b02b
Operating systems: Windows 10
Extension: MUI
In x64: diskpart.exe DiskPart (32 位)

Translations messages and strings

If an error occurred or the following message in Chinese (Simplified) language and you cannot find a solution, than check answer in English. Table below helps to know how correctly this phrase sounds in English.

id Chinese (Simplified) English
1
DiskPart 无法将这个分区标为活动。
请确定分区是否有效。

DiskPart was unable to mark the partition active.
Make sure the partition is valid.
2
选择的磁盘不是固定 MBR 磁盘。
ACTIVE 命令只能用于固定 MBR 磁盘。

The selected disk is not a fixed MBR disk.
The ACTIVE command can only be used on fixed MBR disks.
3
没有选择分区。
请选择一个分区,再试一次。

There is no partition selected.
Please select a partition and try again.
4
DiskPart 将当前分区标为活动。

DiskPart marked the current partition as active.
5
DiskPart 无法将镜像添加到卷。
请确定卷是否有效,可以添加镜像。

DiskPart was unable to add a mirror to the volume.
Please make sure the volume is valid for mirroring.
6
你选择的卷无法镜像。
请选择一个不同的卷来镜像。

The volume you have selected may not be mirrored.
Please select a different volume to mirror.
7
没有指定作为镜像添加的磁盘。
请使用 DISK= 参数指定一个磁盘。

There is no disk specified to add as a mirror.
Please specify a disk using the DISK= parameter.
8
你选择的卷不是动态卷。
请选择一个动态卷,再试一次。

The volume you selected is not dynamic.
Please select a dynamic volume and try again.
9
没有选择可以添加镜像的卷。
选择一个简单动态卷,再试一次。

There is no volume selected to add the mirror.
Select a simple dynamic volume and try again.
10
DiskPart 已将镜像成功地添加到这个卷。

DiskPart succeeded in adding a mirror to the volume.
11
你指定的磁盘对这个卷太小了。
请选择一个不同的磁盘作为镜像。

The disk you have specified is too small for the volume.
Please select a different disk for the mirror.
12disk disk
13hH? hH?
14letter letter
15mount mount
16sS sS
17/- /-
18vV vV
19
指定的字母已分配给这个驱动器。

The specified letter has already been assigned to this drive.
20
DiskPart 无法分配驱动器号或装载点。
请确定驱动器号或装载点是否有效。

DiskPart could not assign the drive letter or mount point.
Make sure the drive letter or mount point is valid.
21
你指定的字母不是有效的卷号。

The letter you specified is not a valid volume letter.
22
你指定的卷无效或者不存在。
请使用 RESCAN 命令刷新你的信息。

The volume you specified is not valid, or does not exist.
Use the RESCAN command to refresh your information.
23
没有可以分配给这个卷的可用驱动器号。
请释放一个驱动器号,再试一次。

There are no free drive letters to assign to this volume.
Please free up a drive letter and try again.
24
DiskPart 无法在系统、启动或页面文件卷上重新分配驱动器号。

DiskPart cannot reassign the drive letter on a system, boot or pagefile volume.
25
没有指定卷。
请选择一个卷,再试一次。

There is no volume specified.
Please select a volume and try again.
26
DiskPart 分配了驱动器号,但要使更改生效,
必须重新启动计算机。

DiskPart assigned the drive letter, but your computer needs to be rebooted
before the changes take effect.
27
DiskPart 成功地分配了驱动器号或装载点。

DiskPart successfully assigned the drive letter or mount point.
28
DiskPart 未能切断卷。
请确定卷是否有效,可以切断。

DiskPart failed to break the volume.
Make sure the volume is valid for breaking.
29
你所选的卷丢失了某个丛。
若要继续中断,请使用 NOKEEP 参数并再试一次。

The volume you have selected has a missing plex.
To continue with the break use the NOKEEP parameter and try again.
30
指定的磁盘对切断卷无效。
请使用 DISK= 参数指定有效的磁盘。

The disk specified is not valid to break the volume.
Please specify a valid disk using the DISK= parameter.
31
只有动态卷才能切断。
请选择一个动态镜像来切断。

Only dynamic volumes may be broken.
Please select a dynamic mirror to break.
32
没有选择要切断的卷。
请选择一个动态镜像来切断。

There is no volume selected to break.
Please select a dynamic mirror to break.
33
DiskPart 成功地切断了镜像卷。

DiskPart successfully broke the mirror volume.
34
DiskPart 成功地中断了镜像,但无法找到相关卷。

DiskPart succeeded in breaking the mirror, but was unable to locate resulting volumes.
351394 1394
36IDE IDE
37SCSI SCSI
38未知 Unknown
39USB USB
40
DiskPart无法清除磁盘。
无法恢复这个磁盘上的数据。

DiskPart was unable to clean the disk.
The data on this disk may be unrecoverable.
42
没有选择磁盘。
请选择一个磁盘,然后重试。

There is no disk selected.
Please select a disk and try again.
43
DiskPart 成功地清除了磁盘。

DiskPart succeeded in cleaning the disk.
44活动 active
45在计算机上: %s
On computer: %s
46
没有选择要转换的磁盘。
请选择一个磁盘,然后重试。

There is no disk selected to convert.
Select a disk and try again.
47
所选磁盘不是动态磁盘。
选择一个动态磁盘,将其转更换为基本磁盘。

The selected disk is not a dynamic disk.
Select a dynamic disk to convert to basic.
48
所选磁盘不是空的。
请确定磁盘是空的,再将其转更换为基本磁盘。

The selected disk is not empty.
Please make sure the disk is empty before converting to basic.
49
DiskPart 已将所选磁盘成功地转更换为基本格式。

DiskPart successfully converted the selected disk to basic format.
50
无法将所选磁盘转更换为动态磁盘。
请选择一个有效的基本磁盘。

The selected disk cannot be upgraded to dynamic.
Please select a valid basic disk to convert.
51
DiskPart 已将所选磁盘成功地转更换为动态格式。

DiskPart successfully converted the selected disk to dynamic format.
52
要完成这个操作,你必须重新启动计算机。

You must reboot your computer to complete this operation.
53
无法将所选的磁盘转更换为 GPT。
请选择一个空白的、基本的 MBR 磁盘。

The disk you specified cannot be converted to GPT.
Please select an empty basic MBR disk to convert.
54
DiskPart 已将所选磁盘成功地转更换为 GPT 格式。

DiskPart successfully converted the selected disk to GPT format.
55
无法将你指定的磁盘转更换为 MBR。
请选择一个空白的、基本的 GPT 磁盘来转换。

The disk you specified cannot be converted to MBR.
Please select an empty basic GPT disk to convert.
56
DiskPart 已将所选磁盘成功地转更换为 MBR 格式。

DiskPart successfully converted the selected disk to MBR format.
57
Copyright (C) Microsoft Corporation.

Copyright (C) Microsoft Corporation.
58
DiskPart 无法创建指定分区。

DiskPart was unable to create the specified partition.
59
指定的磁盘无效。
请选择一个有效磁盘。

The specified disk is not valid.
Please select a valid disk.
60
没有选择要创建分区的磁盘。
选择一个磁盘,再试一次。

There is no disk selected to create a partition.
Select a disk and try again.
61
DiskPart 成功地创建了指定分区。

DiskPart succeeded in creating the specified partition.
62
分区创建成功。
自动分配了驱动器号。

The partition was created successfully.
It was automatically assigned a drive letter.
64
DiskPart 无法创建指定的卷。
请检查你的磁盘和参数。

DiskPart was unable to create the specified volume.
Please check your disks and parameters.
65
没有指定创建卷的磁盘。
请使用 DISK= 参数指定一个磁盘。

There is no disk specified to create the volume.
Please specify a disk using the DISK= parameter.
66
DiskPart 成功地创建了卷。

DiskPart successfully created the volume.
67
DiskPart 成功地创建了卷,但无法选择。
请确定卷是否存在,如果必要,重新启动 DiskPart。

DiskPart successfully created the volume, but was unable to select it.
Make sure the volume exists, and restart DiskPart if necessary.
68
你指定的卷对指定的磁盘太大了。

The volume you have specified is too big for the specified disk(s).
69
你没有指定足够磁盘,无法创建 RAID-5 集。
请指定至少三个磁盘。

You did not specify enough disks to create a RAID-5 set.
Please specify at least 3 disks.
70
你没有指定足够磁盘,无法创建带区集。
请指定至少两个磁盘。

You did not specify enough disks to create a stripe set.
Please specify at least 2 disks.
71
无法删除指定的磁盘。
请选择一个空白的遗失的磁盘来删除。

The disk you specified cannot be deleted.
Please select an empty missing disk to delete.
72
没有选择要删除的磁盘。
选择一个磁盘,再试一次。

There is no disk selected to delete.
Select a disk and try again.
73
DiskPart 成功地删除了遗失的磁盘。

DiskPart successfully deleted the missing disk.
74
选择的分区无效。
请选择一个不同的分区。

The partition you selected is invalid.
Please select a different partition.
77
DiskPart 成功地删除了所选分区。

DiskPart successfully deleted the selected partition.
78
DiskPart 未能删除所选分区。
请确定所选分区是有效的,可以删除。

DiskPart failed to delete the selected partition.
Please make sure the selected partition is valid to delete.
79
DiskPart 未能删除所选卷。
请确定所选卷是有效的,可以删除。

DiskPart failed to delete the selected volume.
Please make sure the selected volume is valid to delete.
80
你选择的卷无效。
请选择一个不同的卷来删除。

The volume you have selected is not valid.
Please select a different volume to delete.
81
没有选择卷。
请选择一个卷,再试一次。

There is no volume selected.
Please select a volume and try again.
82
DiskPart 无法删除可移动媒体上的卷。

DiskPart cannot delete volumes on removable media.
83
所选卷对计算机的运行是必需的。
你不能删除这个卷。

The selected volume is necessary to the operation of your computer.
You may not delete this volume.
84
DiskPart 成功地删除了卷。

DiskPart successfully deleted the volume.
85
%s
磁盘 ID: %s
类型 : %s
总线 : %d
目标 : %d
LUN ID : %d

%s
Disk ID: %s
Type : %s
Bus : %d
Target : %d
LUN ID : %d
86
没有选择列出其详细信息的磁盘。
请选择一个磁盘,再试一次。

There is no disk selected to list details for.
Please select a disk and try again.
87
分区 %lu
类型 : %s
隐藏 : %s
必需: %s
属性 : %#.16I64X
字节偏移: %-.27s

Partition %lu
Type : %s
Hidden : %s
Required: %s
Attrib : %#.16I64X
Offset in Bytes: %-.27s
88
分区 %lu
类型 : %s
隐藏: %s
活动: %s
字节偏移: %-.27s

Partition %lu
Type : %s
Hidden: %s
Active: %s
Offset in Bytes: %-.27s
91
没有跟这个分区相关联的卷。

There is no volume associated with this partition.
92%2.2lX %2.2lX
93
未知分区类型。

Unknown partition type.
94
没有附到这个卷的磁盘。

There are no disks attached to this volume.
96错误 Errors
97外部 Foreign
98丢失 Missing
99脱机 Offline
100联机 Online
102不可读取 Unreadable
103磁盘 ID: Disk ID:
104
DiskPart 无法处理这些参数。
有关详细信息,请用 'diskpart /?'。

DiskPart was unable to process the parameters.
Use 'diskpart /?' for more information.
105
DiskPart 启动 COM 服务时遇到一个错误。

DiskPart encountered an error starting the COM services.
106
在命令表格中找不到这个命令。

That command could not be found in the command table.
107
DiskPart 只能扩展 NTFS 文件系统。

DiskPart can only extend NTFS file systems.
108
DiskPart 无法打开或读取脚本文件。
请确定你指定的文件是否存在。

DiskPart was unable to open or read the script file.
Make sure the file you specified exists.
109
DiskPart 启动磁盘管理服务时遇到一个错误。

DiskPart encountered an error starting the disk management services.
110
DiskPart 内存不足,无法完成操作。

DiskPart has run out of memory, and could not complete the operation.
111
DiskPart 注册 PnP 通知时遇到一个错误。

DiskPart encountered an error while registering for PnP notifications.
112
为这个命令指定的参数无效。

The arguments you specified for this command are not valid.
113
磁盘管理服务无法完成这个操作。

The disk management services could not complete the operation.
114
退出 DiskPart...

Leaving DiskPart...
115
DiskPart 未能扩展卷。
请确定卷是有效的,可以扩展。

DiskPart failed to extend the volume.
Please make sure the volume is valid for extending.
116
不能扩展 OEM、ESP 或恢复分区或脱机卷。
不能扩展你选择的卷。
请选择另一个卷,再试一次。

You may not extend OEM, ESP, or recovery partitions, or, offline volumes.
The volume you have selected may not be extended.
Please select another volume and try again.
117
没有指定扩展卷的磁盘。
请使用 DISK= 参数指定一个磁盘。

There is no disk specified to extend the volume.
Please specify a disk using the DISK= parameter.
120
DiskPart 成功地扩展了卷。

DiskPart successfully extended the volume.
121
指定的磁盘上没有足够的可用空间来扩展该卷。

There is not enough usable free space on specified disk(s) to extend the
volume.
122将选中的分区标记为活动的分区。 Mark the selected partition as active.
123将镜像添加到一个简单卷。 Add a mirror to a simple volume.
124给所选卷分配一个驱动器号或装载点。 Assign a drive letter or mount point to the selected volume.
125中断镜像集。 Break a mirror set.
126从磁盘清除配置信息或所有信息。 Clear the configuration information, or all information, off the
disk.
127显示命令列表。 Display a list of commands.
128在不同的磁盘格式之间转换。 Convert between different disk formats.
129将磁盘从动态转更换为基本。 Convert a disk from dynamic to basic.
130将磁盘从基本转更换为动态。 Convert a disk from basic to dynamic.
131将磁盘从 MBR 转更换为 GPT。 Convert a disk from MBR to GPT.
132将磁盘从 GPT 转更换为 MBR。 Convert a disk from GPT to MBR.
133创建卷、分区或虚拟磁盘。 Create a volume, partition or virtual disk.
134创建分区。 Create a partition.
135创建卷。 Create a volume.
136删除对象。 Delete an object.
137从磁盘列表删除遗失的磁盘。 Delete a missing disk from the disk list.
138删除所选分区。 Delete the selected partition.
139删除所选卷。 Delete the selected volume.
140提供对象详细信息。 Provide details about an object.
141显示选中的磁盘的属性。 Display the properties of the selected disk.
142显示选中的分区的属性。 Display the properties of the selected partition.
143显示选中的卷的属性。 Display the properties of the selected volume.
144创建 EFI 系统分区。 Create an EFI system partition.
145退出 DiskPart。 Exit DiskPart.
146扩展卷。 Extend a volume.
147创建扩展分区。 Create an extended partition.
148导入磁盘组。 Import a disk group.
149显示对象列表。 Display a list of objects.
150显示磁盘列表。例如,LIST DISK。 Display a list of disks. For example, LIST DISK.
151显示所选磁盘上的分区列表。
例如,LIST PARTITION。
Display a list of partitions on the selected disk.
For example, LIST PARTITION.
152显示卷列表。例如,LIST VOLUME。 Display a list of volumes. For example, LIST VOLUME.
153创建逻辑驱动器。 Create a logical drive.
154创建 Microsoft 保留分区。 Create a Microsoft Reserved partition.
155使当前标为脱机的磁盘联机。 Online a disk that is currently marked as offline.
156创建主分区。 Create a primary partition.
157创建软件 RAID-5 卷集。 Create a software RAID-5 volume set.
158不起任何作用。用来注释脚本。 Does nothing. This is used to comment scripts.
159删除驱动器号或装载点分配。 Remove a drive letter or mount point assignment.
160重新扫描计算机,查找磁盘和卷。 Rescan the computer looking for disks and volumes.
161将焦点移动到对象。 Shift the focus to an object.
162将焦点移动到磁盘。例如,SELECT DISK。 Shift the focus to a disk. For example, SELECT DISK.
163将焦点移动到分区。例如,SELECT PARTITION。 Shift the focus to a partition. For example, SELECT PARTITION.
164将焦点移动到卷。例如,SELECT VOLUME。 Shift the focus to a volume. For example, SELECT VOLUME.
165创建简单卷。 Create a simple volume.
166创建带区卷集。 Create a stripe volume set.
167%-11.11s - %-.1009s
%-11.11s - %-.1009s
168
没有选择要导入的磁盘。
选择一个磁盘,再试一次。

There is no disk selected to import.
Select a disk and try again.
169
DiskPart 成功地导入了磁盘组。

DiskPart successfully imported the disk group.
170171 CD-ROM 171 CD-ROM
172DVD-ROM DVD-ROM
173镜像 Mirror
174磁盘分区 Partition
175RAID-5 RAID-5
176可移动 Removable
177简单 Simple
178跨区 Spanned
179带区 Stripe
181* *
182
磁盘 ### 状态 大小 可用 Dyn Gpt
-------- ------------- ------- ------- --- ---

Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
183%s 磁盘 %-3lu %-13.13s %7s %7s %s %s
%s Disk %-3lu %-13.13s %7s %7s %s %s
184%s 磁盘 M%-2lu %-13.13s %7s %7s %s %s
%s Disk M%-2lu %-13.13s %7s %7s %s %s
185
没有可以显示的固定磁盘。

There are no fixed disks to show.
186
分区 ### 类型 大小 偏移量
------------- ---------------- ------- -------

Partition ### Type Size Offset
------------- ---------------- ------- -------
187%s 分区 %-3.3s %-16.16s %-7.7s %-7.7s
%s Partition %-3.3s %-16.16s %-7.7s %-7.7s
188
没有选择要列出分区的磁盘。
选择一个磁盘,再试一次。

There is no disk selected to list partitions.
Select a disk and try again.
189
这个磁盘上没有显示的分区。

There are no partitions on this disk to show.
190动态数据 Dynamic Data
191动态保留 Dynamic Reserved
192扩展的 Extended
193可用 Free
194逻辑 Logical
195OEM OEM
196主要 Primary
197保留 Reserved
198系统 System
200未使用 Unused
201
卷 ### LTR 标签 FS 类型 大小 状态 信息
---------- --- ----------- ----- ---------- ------- --------- --------

Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
202有危险 At Risk
203启动 Boot
204故障转储 Crashdmp
205页面文件 Pagefile
207%1.1s 卷 %-3ld %c %-11.11s %-5.5s %-10.10s %-7.7s %-9.9s %-8.8s
%1.1s Volume %-3ld %c %-11.11s %-5.5s %-10.10s %-7.7s %-9.9s %-8.8s
208(%lu)%s
(%lu)%s
209%c:%s
%c:%s
210
没有卷。

There are no volumes.
211失败 Failed
212失败的读取操作 Failed Rd
213健康 Healthy
214

215 No
216
DiskPart 无法使所选磁盘联机。

DiskPart could not online the selected disk.
217
DiskPart 成功使所选磁盘联机。

DiskPart successfully onlined the selected disk.
218
未选择任务要联机的对象。
请选择一个磁盘或磁盘组,然后重试。

No objects were selected to online.
Please select a disk or pack and try again.
219
DiskPart 无法使所选卷联机。

DiskPart could not online the selected volume.
220
DiskPart 成功使所选卷联机。

DiskPart successfully onlined the selected volume.
221ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`~!@#$%^&*()-_+[]{}':;/?,. ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`~!@#$%^&*()-_+[]{}':;/?,.
222; ;
223 
2250123456789 0123456789
226"' "'
228%5I64d B %5I64d B
229%%4I64d %cB %%4I64d %cB
230-KMGTP? -KMGTP?
231
DISKPART

DISKPART
232
DiskPart 无法删除驱动器号或装载点。
请确定驱动器号或装载点是否有效。

DiskPart could not remove the drive letter or mount point.
Make sure the drive letter or mount point is valid.
234
所选的卷没有可以删除的驱动器号或装入点。

The selected volume has no letter or mount point to remove.
236
DiskPart 成功地删除了驱动器号,但必须重新启动计算机
才能使更改生效。

DiskPart successfully removed the drive letter, but your computer needs to be
rebooted before the changes take effect.
237
DiskPart 成功地删除了驱动器号或装载点。

DiskPart successfully removed the drive letter or mount point.
238
你指定的字母没有分配给那个卷。

The letter you specified is not assigned to that volume.
239
指定的装载点没有分配给那个卷。

The specified mount point is not assigned to that volume.
240
DiskPart 已扫描完你的配置。

DiskPart has finished scanning your configuration.
241mM mM
242
磁盘 %lu 现在是所选磁盘。

Disk %lu is now the selected disk.
243
磁盘 M%lu 现在是所选磁盘。

Disk M%lu is now the selected disk.
244
你指定的磁盘无效。

The disk you specified is not valid.
245
没有选择磁盘。

There is no disk selected.
246
分区 %lu 现在是所选分区。

Partition %lu is now the selected partition.
247
指定的分区无效。
请选择一个有效分区。

The specified partition is not valid.
Please select a valid partition.
248
没有选择磁盘来设置分区。
选择一个磁盘,再试一次。

There is no disk selected to set the partition.
Select a disk and try again.
249
没有选择分区。

There is no partition selected.
250
卷 %lu 是所选卷。

Volume %lu is the selected volume.
251
你选择的卷无效或者不存在。

The volume you selected is not valid or does not exist.
252
没有选择卷。

There is no volume selected.
253
Microsoft DiskPart 语法:
diskpart [/s ] [/?]

/s - 使用一个 DiskPart 脚本。
/? - 显示这个帮助屏幕。

Microsoft DiskPart syntax:
diskpart [/s ] [/?]

/s - Use a DiskPart script.
/? - Show this help screen.
254
DiskPart 运行模式是“详述”。

DiskPart is running in verbose mode.
255DiskPart 正在启动 COM 服务。
DiskPart is starting the COM services.
256DiskPart 正在停止 COM 服务。
DiskPart is stopping the COM services.
257DiskPart 正在启动磁盘管理服务。
DiskPart is starting the disk management services.
258DiskPart 正在停止磁盘管理服务。
DiskPart is stopping the disk management services.
259DiskPart 正在注册 PnP 通知。
DiskPart is registering for PnP notifications.
260DiskPart 正在解除注册 PnP 通知。
DiskPart is unregistering for PnP notifications.
261DiskPart 正在使用脚本模式。
DiskPart is using script mode.
262DiskPart 正在关闭脚本文件。
DiskPart is closing the script file.
263DiskPart 正在使用标准输入模式。
DiskPart is using standard input mode.
264
Microsoft DiskPart 版本 %d.%d.%d.%d

Microsoft DiskPart version %d.%d.%d.%d
274
DiskPart 正在扫描你的配置,请稍候...

Please wait while DiskPart scans your configuration...
275. .
276 Yes
277
所选的命令在这个版本的 Windows 上无法使用。

The command you selected is not available with this version of Windows.
278在一个简单卷下放置一个保留分区。 Place a retained partition under a simple volume.
279
此命令对于基本磁盘分区或可移动磁盘分区无效。

This command is not valid for a basic disk partition or removable disk partition.
280
所选卷有与其相关联的分区。

The selected volume now has a partition associated with it.
281
要编辑的一个对象最近已更改。
请使用 RESCAN 命令扫描配置,取得新信息。

One of the objects you are trying to edit has changed recently.
Please use the RESCAN command to scan your configuration for new information.
282ATAPI ATAPI
283ATA ATA
284SSA SSA
285FIBRE FIBRE
286RAID RAID
287未就绪 Not Ready
288无介质 No Media
289%s 磁盘 %-3lu %-13.13s %7s %7s %s %s 包 %-3ld
%s Disk %-3lu %-13.13s %7s %7s %s %s Pack %-3ld
290
丛 ### 类型 属性 状态 成员 ### 磁盘 ### 状态 DYN GPT 盘区
-------- ------- ------ --------- ---------- -------- --------- --- --- -------

Plex ### Type Attrib Status Member ### Disk ### Status Dyn Gpt Extent
-------- ------- ------ --------- ---------- -------- --------- --- --- -------
291丛 %-3lu %-7.7s %-6.6s %-9.9s
Plex %-3lu %-7.7s %-6.6s %-9.9s
292成员 %-3lu
Member %-3lu
293磁盘 %-3lu %-9.9s %s %s %7s
Disk %-3lu %-9.9s %s %s %7s
295
所选的卷不属于任何包。

The selected volume does not belong to any pack.
296显示包列表。例如,LIST PACK。 Display a list of packs. For example, LIST PACK.
297显示提供程序列表。例如,LIST PROVIDER。 Display a list of providers. For example, LIST PROVIDER.
298将焦点移动到包。例如,SELECT PACK。 Shift the focus to a pack. For example, SELECT PACK.
299将一个组与选定的组合并。 Merge a pack with the selected pack.
300将一个或多个磁盘从联机磁盘组移动到新脱机
磁盘组。
Move one or more disks from an online disk pack to a new offline
pack.
301减小选定卷。 Reduce the size of the selected volume.
302显示选中的磁盘组的属性。 Display the properties of the selected pack.
303
组 ### 名称 状态 信息
-------- ------------------------- ------- ----------------------

Pack ### Name Status Info
-------- ------------------------- ------- ----------------------
304%s 组 %-3lu %-25.25s %-7.7s %-22.22s
%s Pack %-3lu %-25.25s %-7.7s %-22.22s
309无仲裁 No Quorum
311
没有磁盘组。

There are no packs.
312
没有选择磁盘组。
请选择一个磁盘组,然后再试一次。

There is no pack selected.
Please select a pack and try again.
313
此磁盘组上没有任何磁盘。

There are no disks attached to this pack.
314
T此磁盘组上没有任何卷。

There are no volumes attached to this pack.
315
磁盘组 %lu 现在是选择的磁盘组。

Pack %lu is now the selected pack.
316
选择的磁盘组无效。

The pack you specified is not valid.
317
没有选择磁盘组。

There is no selected pack.
318
无法删除含有文件的扩展分区。

Cannot delete a non-empty extended partition.
319
已超过分区的最大数量。

The maximum number of partitions has already been reached.
325
提供程序 ### 名称 版本
------------ ----------------------------------------------- ----------

Provider ### Name Version
------------ ----------------------------------------------- ----------
326%s 提供程序 %-3lu %-48.48s %-14.14s
%s Provider %-3lu %-48.48s %-14.14s
327
找不到指定的卷。
请确认指定的卷存在。

Cannot find the specifed volume.
Please make sure the specified volume exists.
328
没有卷处于焦点。
请选择一个卷,然后再试一次。

There is no volume in focus.
Select a volume and try again.
329
没有指定大小。
请指定大小,然后再试一次。

There is no size specified.
Specify a size and try again.
330
DiskPart 成功收缩卷:

DiskPart successfully shrunk the volume by:
331
没有处于焦点的磁盘组用以合并。
清选择一个磁盘组,然后再试一次。

There is no pack with focus to merge into.
Please select a pack and try again.
332
找不到指定的磁盘组号码。
请使用 PACK= 指定另一个磁盘组。

Could not find specified pack number.
Please specify another pack using the PACK= parameter.
333
Diskpart 成功地合并了磁盘组,但是计算机重新启动后
这些更改才能生效。

DiskPart merged packs successfully, but your computer needs to be rebooted for
the changes to take effect.
334
Diskpart 成功地合并了磁盘组。

DiskPart merged packs successfully.
335
指定的磁盘组与处于焦点的磁盘组相同。
无法将磁盘组合并到自身。

The specified pack is the same as the in-foucs pack.
Cannot merge a pack into itself.
336
没有磁盘组处于焦点。
请选择一个磁盘组,然后再试一次。

There is no pack in focus.
Select a pack and try again.
337
没有指定要分割的磁盘。
请用 DISK=[,[,...]] 指定磁盘,然后再试一次。

There are no disks specified to split.
Specify disks with DISK=[,[,...]] and try again.
338
Diskpart 成功地分割磁盘组,但是计算机重新启动后
这些更改才能生效。

DiskPart successfully split the pack, but your computer needs to be rebooted
before the changes take effect.
339
Diskpart 成功地分割包。

DiskPart successfully split the pack.
340
选择的磁盘已经是一个动态磁盘。

Selected disk is already a dynamic disk.
341
指定的磁盘不是空的。
请选择一个空的 GPT 磁盘来转换。

The disk you specified is not empty.
Please select an empty GPT disk to convert.
342
指定的磁盘不是 GPT 格式。
请选择一个空的 GPT 磁盘来转换。

The disk you specified is not GPT formatted.
Please select an empty GPT disk to convert.
343
指定的磁盘不是空的。
请选择一个空的 MBR 磁盘来转换。

The disk you specified is not empty.
Please select an empty MBR disk to convert.
344
指定的磁盘不是 MBR 格式。
请选择一个空的 MBR 磁盘来转换。

The disk you specified is not MBR formatted.
Please select an empty MBR disk to convert.
345
DiskPart 使选择的磁盘组联机。

DiskPart brought the selected pack online.
346
磁盘不是固定 MBR 磁盘。
INACTIVE 命令只能用于固定 MBR 磁盘。

The disk is not a fixed MBR disk.
The INACTIVE command can only be used on fixed MBR disks.
347
DiskPart 无法将分区标为不活动。
请确认该分区有效。

DiskPart was unable to mark the partition inactive.
Make sure the partition is valid.
348
当前的分区已经被标为不活动。

The current partition is already marked inactive.
349
DiskPart 将当前分区标为不活动。

DiskPart marked the current partition as inactive.
351将所选分区标为不活动。 Mark the selected partition as inactive.
352
DiskPart 在联机与所选磁盘相关联的数据包中的对象时
遇到一个错误。

DiskPart encountered an error while onlining the objects in the pack associated
with the selected disk.
353
DiskPart 成功地将选择的磁盘组联机。

DiskPart successfully onlined the selected disk's pack.
354
选择的磁盘组没有仲裁。
磁盘组联机会导致丢失数据。
如果你仍想继续,请不要使用 OVERRIDE 参数再试一次。

The selected pack has no quorum.
Onlining of the pack may result in lost data.
If you still want to continue, try again with OVERRIDE parameter.
355
Diskpart 成功地将选择的磁盘组联机,但是计算机重新
启动后这些更改才能生效。

DiskPart successfully onlined the selected pack, but your computer needs to be
rebooted for the changes to take effect.
356磁盘 M%-2lu %-9.9s %s %s %7s
Disk M%-2lu %-9.9s %s %s %7s
357正常 Healthy
360显示选中的提供程序的属性。 Display the properties of the selected provider.
361将焦点移动到提供程序。例如,SELECT PROVIDER。 Shift the focus to a provider. For example, SELECT PROVIDER.
362用失败的成员修复一个 RAID-5 卷。 Repair a RAID-5 volume with a failed member.
363%s 磁盘 M%-2lu %-13.13s %7s %7s %s %s 包 %-3ld
%s Disk M%-2lu %-13.13s %7s %7s %s %s Pack %-3ld
364
磁盘 ### 状态 大小 可用 DYN GPT 包 ###
-------- ------------- ------- ------- --- --- --------

Disk ### Status Size Free Dyn Gpt Pack ###
-------- ------------- ------- ------- --- --- --------
367
DiskPart 成功地修复的选择卷。

DiskPart successfully repaired the selected volume.
368
指定磁盘没有足够的可用空间存放失败的卷成员。

There is not enough free space on the specified disks to hold the failed volume
member.
369
DiskPart 无法修复选择卷。

DiskPart failed in repairing the selected volume.
370给选择的 GPT 分区分配属性。 Assign attributes to the selected GPT partition.
372
选择的分区不是 GPT 分区。
请选择一个有效的 GPT 分区并重试。

The selected partition is not a GPT partition.
Please select a valid GPT partition and try again.
373
DiskPart 成功地将属性分配给选择的 GPT 分区。

DiskPart successfully assigned the attributes to the selected GPT partition.
375
DiskPart 无法将驱动器号分配给一个分区。
请选择一个卷,然后再试一次。

DiskPart cannot assign a drive letter to a partition.
Please select a volume and try again.
376
指定的分区不是一个 OEM、ESP 或恢复分区。
请选择一个 OEM、ESP 或恢复分区,然后再试一次。

The partition you specified is not an OEM, ESP or recovery partition.
Please select an OEM, ESP or recovery partition and try again.
377
DiskPart 无法将一个装入点分配给一个 OEM、ESP 或恢复分区。
请选择一个驱动器号,然后再试一次。

DiskPart cannot assign a mount point to an OEM, ESP or recovery partition.
Please select a drive letter and try again.
378重新建立 Rebuild
379
指定的磁盘已经是此卷的一部分。
请给 RAID-5 列指定一个新磁盘。
如果想修复原始失败磁盘,请使用 ONLINE。

The disk you specified is already part of this volume.
Please specify a new disk for the RAID-5 column.
If attempting to repair to the original failed disk, use ONLINE instead.
380
指定的磁盘不是动态的。
请指定一个动态磁盘,然后再试一次。

A disk specified is not dynamic.
Please specify a dynamic disk and try again.
381
选择的磁盘不是动态的。
请指定一个动态磁盘,然后再试一次。

The disk you selected is not dynamic.
Please select a dynamic disk and try again.
382
指定的磁盘只有 1 MB 以下的可用磁盘空间。
请指定至少有 1 MB 可用空间的磁盘。

The specified disks have less than 1 MB of free space available.
Please specify a disk with at least 1 MB available free space.
383此平台不支持此版本的 diskpart。
This version of DiskPart is not supported on this platform.
384
无法将基本卷扩展为一个不同的磁盘。
使用扩展时,请勿指定磁盘。

Cannot extend a basic volume to a different disk.
Please use extend without specifying a disk.
385
你已经将当前启动卷镜像到一个 MBR 磁盘。你将无法
在 MBR 磁盘上的丛启动。

You have mirrored your current boot volume to an MBR disk.
You will not be able to boot from the plex on the MBR disk.
386
所选卷对计算机的运行是必需的。
你可能无法从此卷删除驱动器号。

The selected volume is necessary to the operation of your computer.
You may not remove the drive letter from this volume.
387
已经启用自动装载新卷。

Automatic mounting of new volumes enabled.
388
已经禁用自动装载新卷。

Automatic mounting of new volumes disabled.
389
DiskPart 成功从系统中删除装载点设置。

DiskPart successfully scrubbed the mount point settings in the system.
390启用和禁用基本卷的自动装载。 Enable and disable automatic mounting of basic volumes.
391
DiskPart 成功地卸载了此卷并使其脱机。

DiskPart successfully dismounted and offlined the volume.
392
选择的卷刃仍然保留驱动器号和装载点。
请删除所有驱动器号和装载点,然后再试一次。

The selected volume has remaining drive letters or mount points.
Remove all drive letters and mount points and try again.
393
指定的卷无法脱机。
请指定另一个卷,然后再试一次。

The specified volume cannot not be offlined.
Please specify another volume and try again.
395
DiskPart 无法在另一个分区式样不同的磁盘上镜像当前启动卷。

DiskPart cannot mirror the current boot volume on another disk with a different
partition style.
396
所选的分区正在使用中。
若要继续删除,请使用 OVERRIDE 参数。

The selected partition is in use.
To continue with the delete use the OVERRIDE parameter.
397
所选的卷正在使用中。
若要继续删除,请使用 OVERRIDE 参数。

The selected volume is in use.
To continue with the delete use the OVERRIDE parameter.
398脱机 : %s
Offline : %s
399
正在等待对该镜像进行同步...

Waiting for the mirror to be synchronized...
400
你选择的提供程序无效或不存在。

The provider you selected is not valid or does not exist.
401
提供程序 %u 是选中的提供程序。

Provider %u is the selected provider.
402
没有选择任何提供程序。

There is no provider selected.
403%luB; %luB;
404%luKB; %luKB;
405%luMB; %luMB;
406%luTB; %luTB;
407
没有选择任何提供程序。
请选择一个提供程序,然后重试。

There is no provider selected.
Please select a provider and try again.
408
标识符 : %s
版本 : %s
带区大小:

Identifier : %s
Version : %s
Stripe Sizes:
409
容量:

Capabilities:
410每个组仅一个磁盘 One Disk Only Per Pack
411仅一个组联机 One Pack Online Only
412动态提供商 Dynamic Provider
414支持动态磁盘 Dynamic Disks Supported
415支持容错 Fault Tolerant Supported
417
%s

%s
418已损坏 Corrupted
421
DiskPart 成功格式化该卷。

DiskPart successfully formatted the volume.
422%3lu 百分比已完成 %3lu percent completed
423
已经成功启动格式化并且当前正在进行格式化。
请在尝试访问该卷前,等待格式化完成。

The format has been initiated successfully and is currently in progress.
Please wait until format has completed before trying to access the volume.
424
仅支持 NTFS、FAT32 以及 FAT。
请指定另一个文件系统,然后重试。

Only NTFS, FAT32 and FAT are supported.
Please specify another file system and try again.
425
NTFS 压缩不支持大小超过 4096 的分配单元。
请选择一个较小的分配单元大小,然后重试。

NTFS compression is not supported for allocation unit sizes above 4096.
Please select a smaller allocation unit size and try again.
426
动态卷仅支持 NTFS 文件系统。
请将 NTFS 指定为文件系统类型,然后重试。

Dynamic volumes only support the NTFS file system.
Please specify NTFS as the file system type and try again.
427
分配单元大小必须为 2 的次方。

Allocation Unit size must be power of 2.
428
所选的卷无法被格式化。
请选择另一个卷,然后重试

The selected volume cannot be formatted.
Please select another volume and try again
429
NTFS 不支持所选的卷。
请选择一个不同的文件系统类型,然后重试

NTFS is not supported for the selected volume.
Please select a different file system type and try again
430
FAT32 不支持所选的卷。
请选择一个不同的文件系统类型,然后重试

FAT32 is not supported for the selected volume.
Please select a different file system type and try again
431
FAT 不支持所选的卷。
请选择一个不同的文件系统类型,然后重试

FAT is not supported for the selected volume.
Please select a different file system type and try again
432
你无法格式化系统卷。

You cannot format a system volume.
433
你无法格式化启动卷。

You cannot format a boot volume.
434
默认的文件系统类型为 NTFS。

The default file system type is NTFS.
435格式化卷或分区 Format the volume or partition.
436更改分区类型。 Change the partition type.
437
所选的磁盘不属于任何包。

The selected disk does not belong to any pack.
438
删除大小无效。
对于 MBR 磁盘来说,删除大小应至少为 1 个柱面

The remove size is not valid.
For MBR disks the remove size should be at least 1 cylinder
439无效 Invalid
440
此命令仅适用于带有失败的成员的 Raid-5 卷。
所选的卷无需进行修复。

This command only applies to a RAID-5 volume with a failed member.
The selected volume does not need to be repaired.
441
所选的卷不是一个镜像。
请选择一个镜像,然后重试。

The volume selected is not a mirror.
Please select a mirror and try again.
442
所选的卷具有一个以上的装载点和/或驱动器号。
请使用 REMOVE ALL DISMOUNT 命令删除所有的装载点,
然后卸载该卷。

The selected volume has more than one mount point and/or drive letter.
Use the REMOVE ALL DISMOUNT command to remove all the mount points and dismount
the volume.
450
DiskPart 引用了一个不是最新对象的对象。
请通过使用 RESCAN 命令刷新该对象。
如果该问题依然存在,请退出 DiskPart,然后重新
启动 DiskPart 或重新启动计算机。

DiskPart has referenced an object which is not up-to-date.
Refresh the object by using the RESCAN command.
If the problem persists exit DiskPart, then restart DiskPart or restart the
computer.
451
DiskPart 遇到不可恢复的错误。
请退出 DiskPart,然后重新启动 DiskPart 或重新启动计算机。

DiskPart encountered an unrecoverable error.
Exit DiskPart, then restart DiskPart or restart the computer.
452
DiskPart 遇到意外错误。
请检查系统事件日志获取有关该故障的详细信息。

DiskPart encountered an unexpected error.
Check the system event log for more information on the failure.
453
动态磁盘配置信息已经达到限制的大小。
动态磁盘和卷无法进行配置。
若要继续配置动态磁盘,请删除部分现有的动态卷或磁盘,
然后重试。

The limit for dynamic disk configuration information has been reached.
Dynamic disks and volumes cannot be configured.
To continue configuring dynamic disks, remove some existing dynamic volumes or
disks and try again.
454
指定的命令或参数不被此系统所支持。

The specified command or parameters are not supported on this system.
455
DiskPart 未能更新启动配置数据。
请使用 bcdedit.exe 手动更新。

DiskPart failed to update the boot configuration data.
Use bcdedit.exe to update it manually.
460
所选的卷当前正在重建。

The volume selected is currently rebuilding.
461
指定的磁盘不含有该卷。

The disk specified does not contain the volume.
462
指定的磁盘属于镜像卷的当前启动丛,因此它无法
与该镜像断开。

The disk specified belongs to the current boot plex of the mirrored volume and
cannot be broken from the mirror.
465
DiskPart 无法扩展脱机卷。
请使用 ASSIGN 或 ONLINE 命令使该卷联机,然后重试。

DiskPart cannot extend an offline volume.
Online the volume using the ASSIGN or ONLINE command and try again.
466
你无法扩展脚本/镜像/raid-5 卷。
无法扩展你选择的卷。
请选择其他卷并重试。

You may not extend stripe/mirror/raid-5 volumes.
The volume you have selected may not be extended.
Please select another volume and try again.
467
DiskPart 无法扩展所选的卷,因为它处于脱机状态。
请使用 ONLINE 命令尝试将该卷置于联机状态,然后重试。

DiskPart cannot extend the selected volume because it is offline.
Use the ONLINE command to attempt to online to volume, then try again.
469
DiskPart 无法将所选的卷扩展到任何其他磁盘上,因为
该卷已经跨越了最大数目的磁盘。

DiskPart cannot extend the selected volume onto any additional disks because
the volume already spans the maximum number of disks.
470
DiskPart 成功地扩展了该卷,但是无法扩展文件系统。
若要重试此操作,请使用 DiskPart 命令 EXTEND FILESYSTEM。

DiskPart successfully extended the volume but failed to extend the file system.
To retry this operation use the DiskPart command EXTEND FILESYSTEM.
471
DiskPart 未能扩展卷上的文件系统。

DiskPart failed to extend the file system on the volume.
472
DiskPart 成功地扩展了卷上的文件系统。

DiskPart successfully extended the file system on the volume.
475
所选的磁盘无法转换为动态磁盘,因为它属于群集中的
共享磁盘。

The selected disk cannot be converted to dynamic because it is a shared disk in
a cluster.
476
所选的磁盘无法转换为动态磁盘,因为该磁盘上没有
足够的可用空间。
请在该磁盘上释放部分空间,然后重试。

The selected disk cannot be converted to dynamic because there is not enough
free space on the disk.
Free some space on the disk and try again.
480
所选的磁盘无法转换为 GPT,因为它属于群集中的共享磁盘。

The selected disk cannot be converted to GPT because it is a shared disk in a
cluster.
485
所选的磁盘不属于外部磁盘,因此它无需导入。

The selected disk is not a foreign disk and does not need to be imported.
490
指定的遗失的磁盘无法删除,因为它含有卷范围。
请通过断开或删除卷来从该磁盘删除卷范围,然后重试。
若要强制删除含有卷的遗失的磁盘,请使用 OVERRIDE 参数。

The specified missing disk cannot be deleted because it contains volume
extents.
Remove the volume extents from the disk by breaking or deleting the volumes,
then try again.
To force the delete of the missing disk with volumes use the OVERRIDE
parameter.
495
DiskPart 无法创建指定的分区,因为指定的大小
小于大小下限。
请指定较大的大小,然后重试。

DiskPart is unable to create the specified partition because the specified size
is less than the minimum size.
Specify a larger size and try again.
496
找不到可用范围。可能没有足够的可用空间以指定的大小和偏移创建分区。请指定
不同的大小和偏移值或不指定其中的一个值来
创建最大的分区。可能是使用 MBR
磁盘分区格式对磁盘进行分区,并且此磁盘包含 4 个主分区,(
未创建更多的分区)
或 3 个主分区和
一个扩展分区,(只能创建逻辑驱动器)。

No usable free extent could be found. It may be that there is insufficient
free space to create a partition at the specified size and offset. Specify
different size and offset values or don't specify either to create the
maximum sized partition. It may be that the disk is partitioned using the MBR disk
partitioning format and the disk contains either 4 primary partitions, (no
more partitions may be created), or 3 primary partitions and one extended
partition, (only logical drives may be created).
497
无法在 GPT 磁盘上创建逻辑和扩展分区。
请在 GPT 磁盘上创建主分区来代替。

Logical and extended partitions cannot be created on a GPT disk.
Instead create primary partitions on a GPT disk.
498
只有 GPT 磁盘支持 MSR 和 EFI 分区。
请将所选的磁盘转换为 GPT,然后重试。

MSR and EFI partitions are only supported on GPT disks.
Convert the selected disk to GPT and try again.
499
无法在动态磁盘上创建分区。
请通过使用 CREATE VOLUME 命令在动态磁盘上创建卷来代替。

Partitions cannot be created on a dynamic disks.
Instead use the CREATE VOLUME command to create volumes on a dynamic disk.
501
指定的对齐超出了第一个柱面。
请指定一个小于第一个柱面的对齐,然后重试。

The specified alignment is beyond the first cylinder.
Specify an alignment less than the first cylinder and try again.
502
无法在另一个扩展分区内创建一个扩展分区。
请通过使用 CREATE PARTITION LOGICAL 命令在该扩展分区内
创建附加的逻辑驱动器来代替。

An extended partition cannot be created within another extended partition.
Instead use the CREATE PARTITION LOGICAL command to create additional logical
drives within the extended partition.
503
当前不含有用来在其中创建逻辑驱动器的扩展分区。
请创建一个扩展分区,然后重试。

There is currently no extended partition to create the logical drive in.
Create an extended partition then try again.
505
所选的分区为保护分区,它可能是计算机操作所必需的分区。
如果你确定要删除该分区,请使用 OVERRIDE 参数。

The selected partition is a protected partition and may be necessary to the
operation of your computer.
If you are sure you want to delete the partition use the OVERRIDE parameter.
510
所选的分区不是数据分区。
只有数据分区可以被标记为活动或非活动分区。

The selected partition is not a data partition.
Only data partitions can be marked active or inactive.
511
由于分区类型的原因,所选的分区无法被标
记为活动分区。

The selected partition cannot be marked as an active partition because of its
type.
515
DiskPart 无法为隐藏的卷分配一个装载点。
请选择一个驱动器号分配给该卷,然后重试。

DiskPart cannot assign a mount point to a hidden volume.
Select a drive letter to assign to the volume and try again.
516
指定的驱动器号已经在使用。
请选择另一个空闲的驱动器号,然后重试。

The specified drive letter is already in use.
Select another drive letter that is free and try again.
520
所选的卷无法格式化,因为它的状态为出现故障。
请使用 ONLINE 命令尝试修复该卷,然后重试。

The selected volume cannot be formatted because its status is failed.
Use the ONLINE command to attempt to repair the volume, then try again.
525
多次指定了同一个磁盘。
请指定一个不同的磁盘,然后重试。

The same disk was specified more than once.
Specify a different disk and try again.
526
Diskpart 未能设置卷属性。

DiskPart failed to set volume attributes.
527
卷属性设置成功。

Volume attributes set successfully.
528
Diskpart 未能清除卷属性。

DiskPart failed to clear volume attributes.
529
卷属性清除成功。

Volume attributes cleared successfully.
530只读 : %s
Read-only : %s
531隐藏 : %s
Hidden : %s
532没有默认驱动器号 : %s
No Default Drive Letter: %s
533卷影副本 : %s
Shadow Copy : %s
534操纵卷属性。 Manipulate volume attributes.
535iSCSI iSCSI
536SATA SATA
537SAS SAS
538
DiskPart 无法在大型 MBR 磁盘上创建超过 2TB 限制的分区。
请将该磁盘转换为 GPT 分区类型以便使用该磁盘的全部容量。

DiskPart cannot create partitions beyond the 2TB mark on large MBR disks.
Convert the disk to the GPT partitioning style in order to use its full
capacity.
539
DiskPart 无法在大型 MBR 磁盘上扩展超过 2TB 限制的分区。
请将该磁盘转换为 GPT 分区类型以便使用该磁盘的全部容量。

DiskPart cannot extend partitions beyond the 2TB mark on large MBR disks.
Convert the disk to the GPT partitioning style in order to use its full
capacity.
540
DiskPart 无法将大于 2TB 的 MBR 磁盘转换为动态磁盘。
请将该磁盘转换为 GPT 分区类型以便允许将其转换为动态磁盘。

DiskPart cannot convert MBR disks larger than 2TB to dynamic.
Convert the disk to the GPT partitioning style in order to enable the
conversion to dynamic.
541
你已经将当前的启动卷镜像到一个 GPT 磁盘。
你将无法从 GPT 磁盘上的丛启动。

You have mirrored your current boot volume to a GPT disk.
You will not be able to boot from the plex on the GPT disk.
543
所选的动态卷无法保留,因为它的柱面
未对齐。
有关此命令类型的详细信息,请使用 HELP RETAIN 命令

The selected dynamic volume cannot be retained because it is not cylinder
aligned.
For more information on this command type: HELP RETAIN
544
DiskPart 无法将选中的磁盘置于联机状态,因为找不到该磁盘。

DiskPart cannot online the selected disk because it is missing.
545
DiskPart 已镜像所选的卷,但是无法
对该镜像卷进行同步。
若要重试同步操作,请在该卷上使用 ONLINE 命令。

DiskPart mirrored the selected volume however the mirrored volume failed to
synchronize.
To retry the synchronization use the ONLINE command on the volume.
546
所选的卷无法格式化,因为它已被卸载。
若要装载该卷,请使用 ASSIGN 命令为该卷分配一个驱动器号。

The selected volume cannot be formatted because it is unmounted.
To mount the volume use the ASSIGN command to assign a drive letter to the
volume.
547
所选的卷无法扩展,因为该卷上的文件系统不支持扩展。
有关此命令类型的详细信息,请使用 HELP EXTEND 命令。

The selected volume cannot be extended because the filesytem on the volume does
not support extending.
For more information type: HELP EXTEND.
548
DiskPart 无法更改 Microsoft 保留分区或动态数据
分区的类型。
请选择另一个分区,然后重试。

DiskPart cannot change the type for Microsoft reserved partitions or dynamic
data partitions.
Select another partition and try again.
549
指定的类型是为 Microsoft 保留分区或动态数据分区保留的。
请指定另一个类型,然后重试。

The specified type is reserved for Microsoft reserved partitions or dynamic
data partitions.
Specify another type and try again.
550
所选的分区当前正在使用。
若要强制更改类型,请使用 OVERRIDE 参数。

The selected partition is currently in use.
To force the changing of the type use the OVERRIDE parameter.
551
指定的类型的格式不正确。
有关此命令类型的详细信息,请使用 HELP SET 命令

The specified type is not in the correct format.
For more information on the command type: HELP SET
552
DiskPart 成功设置了分区 ID。

DiskPart successfully set the partition ID.
553
DiskPart 无法创建分区,因为所选的可移动磁盘已经
具有一个分区。
在可移动磁盘上,DiskPart 仅支持创建单个覆盖整个
磁盘的分区。

DiskPart cannot create the partition because the selected removable disk
already has a partition present.
On removable disks, DiskPart only supports the creation of a single partition
covering the entire disk.
554
DiskPart 无法创建分区,因为指定的大小小于整个
磁盘的大小。
DiskPart 仅支持创建覆盖整个可移动磁盘的分区。
请在不指定大小的情况下重试该命令,
此时 DiskPart 将自动设置分区大小使其覆盖整个磁盘。

DiskPart cannot create the partition because the size specified is less than
the size of the entire disk.
DiskPart only supports the creation of partitions that cover an entire
removable disk.
Try the command again without specifying a size and DiskPart will automatically
size the partition to cover the entire disk.
557不可用 Unusable
558卷容量 : %s
Volume Capacity : %s
559卷可用空间 : %s
Volume Free Space : %s
561DiskPart 遇到错误: DiskPart has encountered an error:
562有关详细信息,请参阅系统事件日志。
See the System Event Log for more information.
563虚拟磁盘服务错误:
Virtual Disk Service error:
564
指定的压缩大小太大。

The specified shrink size is too large.
565
系统正在执行碎片整理或卷压缩操作。一次只能运行
卷容量这些操作中的一项。
请等到当前操作完成后,再试一次。

A defragmentation or volume shrink operation is already in progress.
Only one of these operations can run at a time.
Wait until the current process finishes and then try again.
566
可回收的最大字节数为:

The maximum number of reclaimable bytes is:
567
所选的卷上不支持压缩操作。

Shrink is not supported on the selected volume.
568
DiskPart 无法压缩脱机卷。
请使用 ASSIGN 或 ONLINE 命令使该卷联机,然后重试。

DiskPart cannot shrink an offline volume.
Online the volume using the ASSIGN or ONLINE command and try again.
569对应用程序重新启动的调用失败。
应用程序在挂起或故障后将不会自动重新启动。
Call to Application Restart failed.
Application will not automatically restart after a hang or crash.
570
获取卷信息期间遇到错误:
%s。
DiskPart 可能无法列出此对象的所有信息。

An error was encountered while acquiring information for volume:
%s.
DiskPart may not be able to list all information for this object.
571
所选的卷或分区正在使用。
若要继续操作,请使用 OVERRIDE 参数。

The selected volume or partition is in use.
To continue with the operation use the OVERRIDE parameter.
572BitLocker 已加密 : %s
BitLocker Encrypted : %s
573
将会删除该卷上的 BitLocker 加密和加密的数据。
在格式化完成之后可以再次启用 BitLocker。

BitLocker encryption and the encrypted data on the volume will be removed.
You may enable BitLocker again after formatting is complete.
575已隐藏 Hidden
576显示卷上当前和支持的文件系统 Display current and supported file systems on the volume.
578
当前文件系统

Current File System
579
用于格式化的文件系统

File Systems Supported for Formatting
580类型 : %s
Type : %s
581分配单元大小 : %s
Allocation Unit Size : %s
584(默认) (Default)
585(推荐) (Recommended)
586, ,
587
没有用于格式化的文件系统。

No file systems are supported for formatting.
588%u %u
589%uK %uK
590%X.%X%X %X.%X%X
591%X%X.%X%X %X%X.%X%X
594
DiskPart 成功分割磁盘,但你需要重新启动计算机
才能使更改生效。

DiskPart successfully split the disks, but your computer needs to be rebooted
before the changes take effect.
596
DiskPart 无法压缩该卷,原因是该卷处于一种不一致的状态。
请首先在该卷上运行 chkdsk。

DiskPart is not able to shrink the volume since the volume is in an
inconsistent state.
Please run chkdsk on this volume first.
608
DiskPart 未能清除磁盘属性。

DiskPart failed to clear disk attributes.
609
已成功清除磁盘属性。

Disk attributes cleared successfully.
610只读: %s
Read-only : %s
611启动磁盘: %s
Boot Disk : %s
612操纵磁盘属性。 Manipulate disk attributes.
614显示或设置当前启动的操作系统的 SAN 策略。 Display or set the SAN policy for the currently booted OS.
615导入失败 Import Failed
616
DiskPart 已成功更改用于当前操作系统的 SAN 策略。

DiskPart successfully changed the SAN policy for the current operating system.
617全部联机 Online All
618使共享磁盘脱机 Offline Shared
619全部脱机 Offline All
621
SAN 策略: %s

SAN Policy : %s
622
所选磁盘是启动磁盘,因此可能不能使其脱机。

The selected disk is the boot disk and may not be taken offline.
623
所选磁盘是系统磁盘,因此可能不能使其脱机。

The selected disk is the system disk and may not be taken offline.
624内部脱机 Offline Internal
625页面文件磁盘: %s
Pagefile Disk : %s
626休眠文件磁盘: %s
Hibernation File Disk : %s
627故障转储磁盘: %s
Crashdump Disk : %s
628显示或设置磁盘的 GUID 分区表(GPT)标识符或
主启动记录(MBR)签名。
Displays or sets the GUID partition table (GPT) identifier or
master boot record (MBR) signature of a disk.
629
未选择任何磁盘。
请将焦点移动到磁盘,然后重试。

No disk was selected.
Please move the focus to a disk and try again.
630
磁盘 ID: %s

Disk ID: %s
631
指定的标识符格式错误。
请以正确的格式键入标识符:
对于 MBR 磁盘采用十六进制形式,对于 GPT 磁盘采用 GUID。

The specified identifier is not in the correct format.
Type the identifier in the correct format:
in hexadecimal form for an MBR disk or as a GUID for a GPT disk.
632
所选磁盘不是 GUID 分区表(GPT)或主启动记录(MBR)磁盘。
请将焦点移动到 GPT 或 MBR 磁盘。

The disk selected is not a GUID partition table (GPT) or master boot record (MBR) disk.
Please move the focus to a GPT or MBR disk.
633
由于所选磁盘丢失,因此 DiskPart 无法使其脱机。

DiskPart cannot offline the selected disk because it is missing.
634
未选择任何要使其脱机的磁盘。
请选择一个磁盘并重试。

No disk was selected to offline.
Please select a disk and try again.
635
DiskPart 在使磁盘脱机时出错。

DiskPart encountered an error while offlining the disk.
636
DiskPart 成功使所选磁盘脱机。

DiskPart successfully offlined the selected disk.
638不支持 Not Supported
640使当前标记为联机的对象脱机。 Offline an object that is currently marked as online.
642
DiskPart 未能设置磁盘属性。

DiskPart failed to set disk attributes.
643
已成功设置磁盘属性。

Disk attributes set successfully.
644
未指定受支持的文件系统。
请指定其他文件系统,然后重试。
使用 FILESYSTEMS 命令可检索一系列受支持的文件系统。

A supported file system was not specified.
Please specify another file system and try again.
Use the FILESYSTEMS command to retrieve a list of supported file systems.
645使当前标为脱机的对象联机。 Online an object that is currently marked as offline.
646
未选择任何要使其联机的磁盘。
请选择一个磁盘,然后重试。

No disk was selected to online.
Please select a disk and try again.
649操纵卷或磁盘属性。 Manipulate volume or disk attributes.
650
要格式化的选定卷使用 BitLocker 驱动器加密进行加密。
将删除 BitLocker 加密并擦除卷上已加密的数据。
你可以在完成格式化之后再次启用 BitLocker。
若要继续格式化,请使用 OVERRIDE 参数再次运行 FORMAT。

The volume you selected to format is encrypted with BitLocker Drive Encryption.
BitLocker encryption will be removed and the encrypted data on the volume will be erased.
You may enable BitLocker again after formatting is complete.
To proceed with the format, run FORMAT again using the OVERRIDE parameter.
651
要删除的选定卷已使用 BitLocker 驱动器加密进行了加密。
如果删除该卷,将丢失所有数据。
若要继续删除,请使用 OVERRIDE 参数再次运行 DELETE。

The volume you selected to delete has been encrypted with BitLocker Drive Encryption.
If you delete the volume, all data will be lost.
To proceed with the deletion, run DELETE again using the OVERRIDE parameter.
652
要删除的选定分区包含一个使用 BitLocker 驱动器加密进行加密的卷。
如果删除该分区,则会丢失该卷中的所有数据。
若要继续删除,请使用 OVERRIDE 参数再次运行 DELETE。

The partition you selected to delete contains a volume that has been encrypted with BitLocker Drive Encryption.
If you delete the partition, all data in the volume will be lost.
To proceed with the deletion, run DELETE again using the OVERRIDE parameter.
653
你选择的卷仍有向其分配的访问路径。
请删除访问路径并重试。

The volume you selected still has an access path assigned to it.
Please remove the access paths and try again.
654
你选择的卷不支持脱机操作。

The volume you selected does not support the offline operation.
655
无法格式化脱机卷。
请使用 ASSIGN 或 ONLINE 命令使卷联机并重试。

An offline volume cannot be formatted.
Online the volume using the ASSIGN or ONLINE command and try again.
656创建镜像卷集。 Create a mirror volume set.
657
你没有指定两个磁盘,无法创建镜像集。
请指定 2 个磁盘。

You did not specify two disks to create a mirror set.
Please specify 2 disks.
658恢复 Recovery
659
你无法收缩 OEM、ESP、恢复分区或脱机卷。
无法收缩你选择的卷。
请选择其他卷并重试。

You may not shrink OEM, ESP, or recovery partitions, or, offline volumes.
The volume you have selected may not be shrunk.
Please select another volume and try again.
660
你无法将 OEM、ESP 或恢复分区脱机。
无法使你选择的卷脱机。
请选择其他卷并重试。

You may not take an OEM, ESP, or recovery partition offline.
The volume you have selected can not be taken offline.
Please select another volume and try again.
661
此命令不对 OEM、ESP 或恢复分区执行操作。
系统会将隐藏的卷(如 OEM、ESP 和恢复分区)
自动联机。
请选择其他卷并重试。

This command does not operate on OEM, ESP, or recovery partitions.
Hidden volume such as OEM, ESP and recovery partitions are automatically
onlined by the system.
Please select another volume and try again.
662
仅 UDF 文件系统类型支持 DUPLICATE 参数。

The DUPLICATE parameter is supported only with the UDF file system type.
663标志: %s
Flags : %s
664%#8.8lX %#8.8lX
665群集磁盘 : %s
Clustered Disk : %s
853[版本 %s] [Revision %s]
1100
未选择任何要恢复的对象。
请选择一个磁盘并重试。

No objects were selected to recover.
Please select a disk and try again.
1102刷新所选包中所有磁盘的状态。
尝试恢复无效包中的磁盘,并
重新同步具有过时丛或奇偶校验数据
的镜像卷和 RAID5 卷。
Refreshes the state of all disks in the selected pack.
Attempts recovery on disks in the invalid pack, and
resynchronizes mirrored volumes and RAID5 volumes
that have stale plex or parity data.
1103
DiskPart 出错。

DiskPart encountered an error.
1104
RECOVER 命令已成功完成。

The RECOVER command completed successfully.
1106使当前标记为联机的磁盘脱机。 Offline a disk that is currently marked as online.
1107
未选择任何要使其脱机的卷。
请选择一个卷并重试。

No volume was selected to offline.
Please select a volume and try again.
1108
DiskPart 已成功使所选卷脱机。

DiskPart successfully offlined the selected volume.
1111
DiskPart 无法使所选卷脱机。

DiskPart could not offline the selected volume.
1112
未选择任何要使其联机的卷。
请选择一个卷并重试。

No volume was selected to online.
Please select a volume and try again.
1113使当前标记为脱机的卷联机。 Online a volume that is currently marked as offline.
1114使当前标记为联机的卷脱机。 Offline a volume that is currently marked as online.
1200创建虚拟磁盘文件。 Creates a virtual disk file.
1201
DiskPart 已成功创建虚拟磁盘文件。

DiskPart successfully created the virtual disk file.
1202
DiskPart 找不到 Microsoft 虚拟磁盘提供程序。

DiskPart was not able to find the Microsoft Virtual Disk Provider.
1203将焦点转移到虚拟磁盘。例如,SELECT VDISK。 Shift the focus to a virtual disk. For example, SELECT VDISK.
1204
DiskPart 已成功选择虚拟磁盘文件。

DiskPart successfully selected the virtual disk file.
1205连接虚拟磁盘文件。 Attaches a virtual disk file.
1206
未选择任何虚拟磁盘。
请选择一个虚拟磁盘并重试。

There is no virtual disk selected.
Please select a virtual disk and try again.
1207
DiskPart 已成功连接虚拟磁盘文件。

DiskPart successfully attached the virtual disk file.
1208分离虚拟磁盘文件。 Detaches a virtual disk file.
1209
DiskPart 已成功分离虚拟磁盘文件。

DiskPart successfully detached the virtual disk file.
1210显示所选虚拟磁盘的属性。 Displays the properties of the selected virtual disk.
1211
状态: %s

State: %s
1212
设备类型 ID: %lu (%s)

Device type ID: %lu (%s)
1213
供应商 ID: %s (%s)

Vendor ID: %s (%s)
1214
虚拟大小: %s

Virtual size: %s
1215
物理大小: %s

Physical size: %s
1216
文件名: %s

Filename: %s
1218VHD VHD
1219ISO ISO
1220Microsoft Corporation Microsoft Corporation
1223打开 Open
1224连接操作挂起 Attach pending
1225已连接 Attached
1226分离操作挂起 Detach pending
1227正在压缩 Compacting
1228正在合并 Merging
1229正在展开 Expanding
1230未打开已连接内容 Attached not open
1231
找不到关联的磁盘号。

Associated disk#: Not found.
1232
关联的磁盘号: %d

Associated disk#: %d
1233显示虚拟磁盘列表。 Displays a list of virtual disks.
1234
虚拟磁盘 ### 磁盘 ### 状态 类型 文件
------------ -------- -------------------- --------- ----

VDisk ### Disk ### State Type File
--------- -------- -------------------- --------- ----
1235%s 虚拟磁盘 %-6lu 磁盘 %-3.3s %-20.20s %-10.10s %s
%s VDisk %-3lu Disk %-3.3s %-20.20s %-10.10s %s
1236
没有要显示的虚拟磁盘。

There are no virtual disks to show.
1237可扩展 Expandable
1238固定 Fixed
1239--- ---
1240尝试减少文件的物理大小。 Attempts to reduce the physical size of the file.
1241将子磁盘与其父磁盘合并。 Merges a child disk with its parents.
1242扩展虚拟磁盘上可用的最大大小。 Expands the maximum size available on a virtual disk.
1243
DiskPart 已成功压缩虚拟磁盘文件。

DiskPart successfully compacted the virtual disk file.
1244
DiskPart 已成功合并差异链。

DiskPart successfully merged the differencing chain.
1245
DiskPart 已成功扩展虚拟磁盘文件。

DiskPart successfully expanded the virtual disk file.
1246
未选择任何虚拟磁盘文件。

There is no virtual disk selected.
1248
没有系统盘可供选择。

There is no system disk to be selected.
1249
未设置磁盘枚举的开始位置。

The start of the disk enumeration is not set.
1250
已到达磁盘枚举的结尾。

Reached the end of the disk enumeration.
1251
%s
磁盘 ID: %s
类型 : %s
状态 : %s
路径 : %d
目标 : %d
LUN ID : %d
位置路径 : %s

%s
Disk ID: %s
Type : %s
Status : %s
Path : %d
Target : %d
LUN ID : %d
Location Path : %s
1253可安装 : %s
Installable : %s
1254虚拟备份的文件 File Backed Virtual
1255%%4I64d %cB (%%4I64d MB) %%4I64d %cB (%%4I64d MB)
1256 None
1257策略 Policy
1258冗余路径 Redundant Path
1259快照 Snapshot
1260签名冲突 Signature Collision
1261当前只读状态: %s
Current Read-only State : %s
1262
父文件名: %s

Parent Filename: %s
1263
为子级: %s

Is Child: %s
1264已添加 Added
1265已删除 Deleted
1266虚拟 Virtual
1267空间 Spaces
1268资源消耗 Resource Exhaustion
1269SD SD
1270关键写入失败 Critical Write Failures
1271需要数据完整性扫描 Data Integrity Scan Required
1272NVMe NVMe
1273BckngWim BckngWim
1274丢失数据或持久性 Lost Data or Persistence
1275UFS UFS
0x40002EE3在格式化主启动记录(MBR)磁盘的磁盘上,将带焦点的分区标记为活动分区。语法: ACTIVE 将一个值写入启动时由基本输入输出系统(BIOS)读取的磁盘。 该值指定分区是有效的系统分区。 必须选择一个分区才能成功执行此操作。 警告: DiskPart 仅验证该分区是否能够包含操作系统启动文件。 DiskPart 不会检查分区中的内容。 如果错误地将某个分区标记为活动分区,而该分区不包含 操作系统启动文件,则计算机可能无法启动。示例: ACTIVE On disks with master boot record (MBR) disk formatting, marks the partition with focus as active.Syntax: ACTIVE Writes a value to the disk which is read by the basic input/output system (BIOS) at boot. This value specifies that the partition is a valid system partition. A partition must be selected for this operation to succeed. Caution: DiskPart verifies only that the partition is capable of containing the operating system startup files. DiskPart does not check the contents of the partition. If you mistakenly mark a partition as active and it does not contain the operating system startup files, your computer might not start.Example: ACTIVE
0x40002EE5将带焦点的简单卷镜像到指定的磁盘。语法: ADD DISK= [ALIGN=] [WAIT] [NOERR] DISK= 指定一个含有现有简单卷的磁盘以外的磁盘来包含镜像。 可以仅镜像简单卷。指定的磁盘必须具有不低于要镜像 的简单卷大小的未分配空间。 ALIGN= 通常与硬件 RAID 逻辑单元号(LUN)阵列一起使用以提高性能。 将所有卷范围与最近的对齐边界对齐。 范围偏移将为 的倍数。 WAIT 返回前,等待卷完成与添加的磁盘的同步。如果不使用 wait 参数,DiskPart 会在创建镜像卷后返回,而不等待同步完成。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令, 如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出并返回 错误代码。 必须选择一个卷才能成功执行此操作。 Windows Vista 的任何版本都不支持容错卷(如 RAID-5)和镜像卷。示例: ADD DISK=2 Mirrors the simple volume with focus to the specified disk.Syntax: ADD DISK= [ALIGN=] [WAIT] [NOERR] DISK= Specifies a disk, other than the one containing the existing simple volume, to contain the mirror. You can mirror only simple volumes. The specified disk must have unallocated space at least as large as the size of the simple volume you want to mirror. ALIGN= Typically used with hardware RAID Logical Unit Number (LUN) arrays to improve performance. Aligns all volume extents to the closest alignment boundary. The extent offsets will be a multiple of . WAIT Waits for the volume to finish synchronizing with the added disk before returning. Without the WAIT parameter, DiskPart returns after the mirrored volume is created and does not wait for the synchronization to complete. NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. A volume must be selected for this operation to succeed. Fault-tolerant volumes such as RAID-5 and mirrored volumes are not supported in any edition of Windows Vista. Example: ADD DISK=2
0x40002EE7为带焦点的卷分配一个驱动器号或装入文件夹的路径名称。语法: ASSIGN [LETTER= | MOUNT=] [NOERR] LETTER= 分配给卷的驱动器号。 MOUNT= 分配给卷的装入文件夹的路径名称。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续 处理命令,如同没有出现错误一样。如果 不使用 NOERR 参数,错误会导致 DiskPart 退出并返回错误代码。 如果没有指定驱动器号或装入的文件夹,则会分配下一个可用的 驱动器号。如果驱动器号或装入的文件夹已经在使用, 则会生成一个错误。 通过使用 ASSIGN 命令,你可以更改与可移动驱动器关联的 驱动器号。 你无法为启动卷或含有页面文件的卷分配驱动器号。 此外,你无法为原始设备制造商(OEM)分区(除非启动到 Windows PE)或除基本数据 分区以外的任何 GUID 分区表(GPT)分区、ESP 分区或恢复分区分配驱动器号。 必须选择一个卷才能成功执行此操作。示例: ASSIGN LETTER=D Assigns a drive letter or mounted folder pathname to the volume with focus.Syntax: ASSIGN [LETTER= | MOUNT=] [NOERR] LETTER= The drive letter to assign to the volume. MOUNT= The mounted folder pathname to assign to the volume. NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. If no drive letter or mounted folder is specified, the next available drive letter is assigned. If the drive letter or mounted folder is already in use, an error is generated. By using the ASSIGN command, you can change the drive letter associated with a removable drive. You cannot assign drive letters to boot volumes or volumes that contain the paging file. In addition, you cannot assign a drive letter to an Original Equipment Manufacturer (OEM) partition unless booted to Windows PE, or any GUID Partition Table (GPT) partition other than a basic data partition, an ESP partition or a recovery partition. A volume must be selected for this operation to succeed.Example: ASSIGN LETTER=D
0x40002EE9显示、设置或清除所选卷的卷属性。语法: ATTRIBUTES VOLUME [SET | CLEAR] [HIDDEN | READONLY | NODEFAULTDRIVELETTER | SHADOWCOPY] [NOERR] SET 为所选卷设置指定属性(HIDDEN、READONLY 和 NODEFAULTDRIVELETTER 或 SHADOWCOPY)。 CLEAR 从所选卷清除指定属性(HIDDEN、READONLY、 NODEFAULTDRIVELETTER 或 SHADOWCOPY)。 HIDDEN 指定卷为隐藏卷。 READONLY 指定卷为只读卷。 NODEFAULTDRIVELETTER 指定默认情况下卷不接收驱动器号。 SHADOWCOPY 指定卷为卷影副本卷。 NOERR 仅用于脚本。出现错误时,DiskPart 继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出 并返回错误代码。 在基本主启动记录(MBR)磁盘上,HIDDEN、READONLY 和 NODEFAULTDRIVELETTER 属性适用于该磁盘上的所有卷。 在基本 GUID 分区表(GPT)磁盘以及动态 MBR 和 GPT 磁盘上,HIDDEN、READONLY 和 NODEFAULTDRIVELETTER 属性 仅适用于所选卷。示例:若要显示所选卷上的属性,请键入:ATTRIBUTES VOLUME若要将所选卷上的属性设置为只读,请键入:ATTRIBUTES VOLUME SET READONLY若要从所选卷上清除只读属性,请键入:ATTRIBUTES VOLUME CLEAR READONLY Displays, sets, or clears volume attributes for the selected volume.Syntax: ATTRIBUTES VOLUME [SET | CLEAR] [HIDDEN | READONLY | NODEFAULTDRIVELETTER | SHADOWCOPY] [NOERR] SET Sets the specified attribute (HIDDEN, READONLY, and NODEFAULTDRIVELETTER or SHADOWCOPY) for the selected volume. CLEAR Clears the specified attribute (HIDDEN, READONLY, NODEFAULTDRIVELETTER or SHADOWCOPY) from the selected volume. HIDDEN Specifies that the volume is hidden. READONLY Specifies that the volume is read-only. NODEFAULTDRIVELETTER Specifies that the volume does not receive a drive letter by default. SHADOWCOPY Specifies that the volume is a shadow copy volume. NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. On basic master boot record (MBR) disks, the HIDDEN, READONLY, and NODEFAULTDRIVELETTER attributes apply to all volumes on the disk. On basic GUID partition table (GPT) disks, and on dynamic MBR and GPT disks, the HIDDEN, READONLY, and NODEFAULTDRIVELETTER attributes apply only to the selected volume.Example:To display the attributes on the selected volume, type:ATTRIBUTES VOLUMETo set the attribute on the selected volume as read-only, type:ATTRIBUTES VOLUME SET READONLYTo clear the read-only attribute from the selected volume, type:ATTRIBUTES VOLUME CLEAR READONLY
0x40002EEB启用或禁用自动装载功能。语法: AUTOMOUNT [ENABLE] [DISABLE] [SCRUB] [NOERR] ENABLE 使 Windows 可以自动将驱动器号分配给已添加到系统的卷。 DISABLE 防止 Windows 自动将驱动器号分配给已添加到系统的卷。 SCRUB 删除不再位于系统中的卷的装入文件夹路径名称、驱动器号、装入 文件夹目录和注册表设置。这可防止在将之前位于 系统中的卷重新引入到系统时自动为这些 卷分配它们以前的驱动器号和装入文件夹路径名称。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续 处理命令,如同没有出现错误一样。如果 不使用 NOERR 参数,错误会导致 DiskPart 退出并返回错误代码。 启用自动装载功能(默认在 Windows Server 的同一版本上)时,Windows 会在将卷 添加到系统时自动使该卷联机,并且为该卷分配一个 驱动器号和卷 GUID 路径名称。在存储区域网络(SAN)配置中,禁用自动装载 可防止 Windows 自动使该卷联机,并防止为系统中可见的任何新卷分配一个 驱动器号和卷 GUID 路径名称。 请注意,在 Windows Vista 之前发布的 Windows 版本上,自动装载功能只能用于 基本磁盘卷。从 Windows Vista 开始,自动装载功能可用于基本磁盘卷和 动态磁盘卷。示例: AUTOMOUNT AUTOMOUNT ENABLE AUTOMOUNT DISABLE Enables or disables the automount feature.Syntax: AUTOMOUNT [ENABLE] [DISABLE] [SCRUB] [NOERR] ENABLE Enables Windows to automatically assign drive letters to volumes that are added to the system. DISABLE Prevents Windows from automatically assigning drive letters to volumes that are added to the system. SCRUB Removes mounted folder pathnames, drive letters, mounted folder directories, and registry settings, for volumes that are no longer in the system. This prevents volumes that were previously in the system from being automatically assigned their former drive letters and mounted folder pathnames when they are reintroduced to the system. NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. When the AutoMount feature is enabled (the default on some versions of Windows Server), Windows automatically brings the volume online, and, assigns a drive letter and a volume GUID pathname to the volume, when the volume is added to the system. In storage area network (SAN) configurations, disabling AutoMount prevents Windows from automatically onlining the volume and assigning drive letters or volume GUID pathnames to any new volumes that are visible to the system. Note that the AutoMount feature could only be applied to basic disk volumes on Windows versions released prior to Windows Vista. Starting with Windows Vista, the AutoMount feature can be applied to both basic and dynamic disk volumes.Example: AUTOMOUNT AUTOMOUNT ENABLE AUTOMOUNT DISABLE
0x40002EED将带焦点的镜像卷分为两个简单卷。语法: BREAK DISK= [NOKEEP] [NOERR] DISK= 指定含有镜像卷一个副本的磁盘。命令完成后,此磁盘会获得焦点 但此磁盘上使用镜像卷范围创建的新卷不会保留已与该镜像卷关联的 驱动器号、卷 GUID 路径名称或装入文件夹路径。 如果将指定磁盘上的镜像卷用作系统或启动分区, 则命令会失败。 NOKEEP 指定仅保留镜像卷的一个副本。磁盘 上的镜像卷范围 会转换为可用空间。该镜像卷的其余副本和磁盘 上可用空间 都不会收到焦点。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续 处理命令,如同没有出现错误一样。如果 不使用 NOERR 参数,错误会导致 DiskPart 退出并返回错误代码。 仅适用于动态磁盘。将带焦点的镜像卷分为两个简单卷。 一个简单卷保留已与该镜像卷关联的 驱动器号、卷 GUID 路径名称或装入文件夹路径。 另一个简单卷接收焦点,因此你可以为它分配一个 驱动器号(将为其自动分配一个卷 GUID 路径名称)。 默认情况下,镜像这两个副本的内容都会保留。每个 副本都成为一个简单卷。通过使用 NOKEEP 参数,你可以 仅将镜像卷的一个副本保留为简单卷,将另一个副本 转换为可用空间。任何卷不会接收焦点。 必须选择一个镜像卷才能成功执行此操作。示例: BREAK DISK=2 Breaks the mirrored volume with focus into two simple volumes.Syntax: BREAK DISK= [NOKEEP] [NOERR] DISK= Specifies a disk that contains one copy of the mirror volume. When the command has completed, this disk is given focus, and the new volume created on this disk using the mirror volume extents does not retain any drive letters, volume GUID pathnames or mounted folder paths that had been associated with the mirror volume. If the mirror volume on the specified disk is used as a system or boot partition, the command fails. NOKEEP Specifies that only one copy of the mirror volume is retained; the mirror volume extents on disk are converted to free space. Neither the remaining copy of the mirror volume, nor the free space on disk receives the focus. NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. Applies to dynamic disks only. Breaks the mirrored volume with focus into two simple volumes. One simple volume retains the drive letter, volume GUID pathnames or mounted folder paths that had been associated with the mirror volume. The other simple volume receives the focus so you can assign it a new drive letter (it will automatically be assigned a volume GUID pathname). By default, the contents of both copies of the mirror are retained. Each copy becomes a simple volume. By using the NOKEEP parameter, you retain only one copy of the mirror volume as a simple volume, and the other copy is converted to free space. Neither volume receives the focus. A mirror volume must be selected for this operation to succeed.Example: BREAK DISK=2
0x40002EEF从带焦点的磁盘删除任意和所有分区或格式化卷。语法: CLEAN [ALL] ALL 指定将磁盘上的每个字节\\扇区都设置为 0,这会 完全删除该磁盘上包含的所有数据。 在主启动记录(MBR)磁盘上,仅会覆盖 MBR 分区信息和隐藏的 扇区信息。在 GUID 分区表(GPT)磁盘上,包括 保护性 MBR 在内的 GPT 分区信息都会被覆盖。如果不使用 ALL 参数, 则磁盘的第一个 1MB 和最后一个 1MB 都将为零。这将擦除以前应用到 该磁盘的任何格式化磁盘。清除该磁盘后的磁盘状态为 'UNINITIALIZED'。示例: CLEAN Removes any and all partition or volume formatting from the disk with focus.Syntax: CLEAN [ALL] ALL Specifies that each and every byte\\sector on the disk is set to zero, which completely deletes all data contained on the disk. On master boot record (MBR) disks, only the MBR partitioning information and hidden sector information are overwritten. On GUID partition table (GPT) disks, the GPT partitioning information, including the Protective MBR, is overwritten. If the ALL parameter is not used, the first 1MB and the last 1MB of the disk are zeroed. This erases any disk formatting that had been previously applied to the disk. The disk's state after cleaning the disk is 'UNINITIALIZED'.Example: CLEAN
0x40002EF1将空的动态磁盘转换为基本磁盘。语法: CONVERT BASIC [NOERR] NOERR 仅用于脚本。遇到错误时,DiskPart 会 继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出并返回错误代码。 必须选择一个动态磁盘才能成功执行此操作。 重要信息: 磁盘必须为空磁盘才能转换为动态磁盘。请在转换磁盘前 备份数据,然后删除所有分区或卷。示例: CONVERT BASIC Converts an empty dynamic disk to a basic disk.Syntax: CONVERT BASIC [NOERR] NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. A dynamic disk must be selected for this operation to succeed. Important: The disk must be empty to convert it to a dynamic disk. Back up your data, and then delete all partitions or volumes before converting the disk.Example: CONVERT BASIC
0x40002EF3将基本磁盘转换为动态磁盘。语法: CONVERT DYNAMIC [NOERR] NOERR 仅用于脚本。遇到错误时,DiskPart 会继续 处理命令,如同没有出现错误一样。如果 不使用 NOERR 参数,错误会导致 DiskPart 退出并返回错误代码。 基本磁盘上的任何现有分区都会变为简单卷。 必须选择一个基本磁盘才能成功执行此操作。示例: CONVERT DYNAMIC Converts a basic disk into a dynamic disk.Syntax: CONVERT DYNAMIC [NOERR] NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. Any existing partitions on the basic disk become simple volumes. A basic disk must be selected for this operation to succeed.Example: CONVERT DYNAMIC
0x40002EF5将具有主启动记录(MBR)分区形式的空基本磁盘转换为 具有 GUID 分区表(GPT)分区形式的基本磁盘。语法: CONVERT GPT [NOERR] NOERR 仅用于脚本。遇到错误时,DiskPart 会 继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出并返回错误代码。 必须选择一个基本 MBR 磁盘才能成功执行此操作。 转换为 GPT 所需的最小磁盘大小是 128MB。 重要信息: 若要将磁盘转换为 GPT 磁盘,该磁盘必须为空。请在转换 磁盘前备份数据,然后删除所有分区或卷。示例: CONVERT GPT Converts an empty basic disk with the master boot record (MBR) partition style into a basic disk with the GUID partition table (GPT) partition style.Syntax: CONVERT GPT [NOERR] NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. A basic MBR disk must be selected for this operation to succeed. The required minimum disk size for conversion to GPT is 128MB. Important: The disk must be empty to convert it to a GPT disk. Back up your data, and then delete all partitions or volumes before converting the disk.Example: CONVERT GPT
0x40002EF7将具有 GUID 分区表(GPT)分区形式的空基本磁盘转换为 具有主启动记录(MBR)分区形式的基本磁盘。语法: CONVERT MBR [NOERR] NOERR 仅用于脚本。遇到错误时,DiskPart 会继续 处理命令,如同没有出现错误一样。如果不使用 NOERR 参数,错误会导致 DiskPart 退出并返回错误代码。 必须选择一个基本 GPT 磁盘才能成功执行此操作。 重要信息: 若要将磁盘转换为 MBR 磁盘,该磁盘必须为空。请在转换 磁盘前备份数据,然后删除所有分区或卷。示例: CONVERT MBR Converts an empty basic disk with the GUID partition table (GPT) partition style to a basic disk with the master boot record (MBR) partition style.Syntax: CONVERT MBR [NOERR] NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. A basic GPT disk must be selected for this operation to succeed. Important: The disk must be empty to convert it to an MBR disk. Back up your data, and then delete all partitions or volumes before converting the disk.Example: CONVERT MBR
0x40002EF9在 GUID 分区表(GPT)磁盘上创建可扩展固件接口(EFI) 系统分区。语法: CREATE PARTITION EFI [SIZE=] [OFFSET=] [NOERR] SIZE= 分区大小,以兆字节(MB)为单位。如果未给定 大小,则会继续创建分区,直到当前区域中没有 更多可用空间。 OFFSET= 创建分区所处的偏移,以千字节(KB)为单位。 如果未给定偏移,则将分区放置在 有足够空间容纳它的第一个磁盘盘区中。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出 并返回错误代码。 创建分区之后,会将焦点提供给新分区。 必须选择一个基本 GPT 磁盘才能成功执行此操作。示例: CREATE PARTITION EFI SIZE=1000 Creates an Extensible Firmware Interface (EFI) system partition on a GUID partition table (GPT) disk.Syntax: CREATE PARTITION EFI [SIZE=] [OFFSET=] [NOERR] SIZE= The size of the partition in megabytes (MB). If no size is given, the partition continues until there is no more free space in the current region. OFFSET= The offset, in kilobytes (KB), at which the partition is created. If no offset is given, the partition is placed in the first disk extent that is large enough to hold it. NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. After the partition has been created, the focus is given to the new partition. A basic GPT disk must be selected for this operation to succeed.Example: CREATE PARTITION EFI SIZE=1000
0x40002EFB在带焦点的磁盘上创建扩展分区。 仅适用于主启动记录(MBR)磁盘。语法: CREATE PARTITION EXTENDED [SIZE=] [OFFSET=] [ALIGN=] [NOERR] SIZE= 分区大小,以兆字节(MB)为单位。如果未给定 大小,则会继续创建分区,直到扩展分区中没有更多 可用空间。 OFFSET= 创建分区所处的偏移,以千字节(KB)为单位。 如果未给定偏移,则分区将从有足够空间容纳新分区的磁盘上第一个 可用空间的起点开始。 ALIGN= 通常与硬件 RAID 逻辑单元号(LUN)阵列一起使用来提高性能。分区 偏移将是 的倍数。如果指定了 OFFSET 参数,则会舍 入为 最近的倍数。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出 并返回错误代码。 创建分区之后,焦点会自动移动到新分区。每个磁盘只能创建一个扩展分区。 如果尝试在其他扩展分区中创建扩展分区, 此命令将失败。必须创建扩展分区才能创建逻辑分区。 必须选择一个基本 MBR 磁盘才能成功执行此操作。示例: CREATE PARTITION EXTENDED SIZE=1000 Creates an extended partition on the disk with focus. Applies to master boot record (MBR) disks only.Syntax: CREATE PARTITION EXTENDED [SIZE=] [OFFSET=] [ALIGN=] [NOERR] SIZE= The size of the partition in megabytes (MB). If no size is given, the partition continues until there is no more free space in the extended partition. OFFSET= The offset, in kilobytes (KB), at which the partition is created. If no offset is given, the partition will start at the beginning of the first free space on the disk that is large enough to hold the new partition. ALIGN= Typically used with hardware RAID Logical Unit Number (LUN) arrays to improve performance. The partition offset will be a multiple of . If the OFFSET parameter is specified, it will be rounded to the closest multiple of . NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. After the partition has been created, the focus automatically shifts to the new partition. Only one extended partition can be created per disk. This command fails if you attempt to create an extended partition within another extended partition. You must create an extended partition before you can create logical partitions. A basic MBR disk must be selected for this operation to succeed.Example: CREATE PARTITION EXTENDED SIZE=1000
0x40002EFD在扩展分区中创建逻辑分区。 仅适用于主启动记录(MBR)磁盘。语法: CREATE PARTITION LOGICAL [SIZE=] [OFFSET=] [ALIGN=] [NOERR] SIZE= 分区大小,以兆字节(MB)为单位。分区的字节数至少与 N 指定的数相同。如果指定逻辑分区的大小, 则该逻辑分区必须小于扩展分区。 如果未给定大小,则会继续创建分区,直到扩展分区中没有 更多可用空间。 OFFSET= 创建分区所处的偏移,以 千字节(KB)为单位。如果未给定偏移,则将分区放置在 有足够空间容纳它的第一个磁盘盘区中。 ALIGN= 通常与硬件 RAID 逻辑单元号(LUN) 阵列一同使用来提高性能。分区 偏移将是 的倍数。如果指定了 OFFSET 参数,则会舍 入为 最近的倍数。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出 并返回错误代码。 创建分区之后,焦点会自动移动到新逻辑分区。 必须选择一个基本 MBR 磁盘才能成功执行此操作。示例: CREATE PARTITION LOGICAL SIZE=1000 Creates a logical partition in an extended partition. Applies to master boot record (MBR) disks only.Syntax: CREATE PARTITION LOGICAL [SIZE=] [OFFSET=] [ALIGN=] [NOERR] SIZE= The size of the partition in megabytes (MB). The partition is at least as big in bytes as the number specified by N. If you specify a size for the logical partition, it must be smaller than the extended partition. If no size is given, the partition continues until there is no more free space in the extended partition. OFFSET= The offset, in kilobytes (KB), at which the partition is created. If no offset is given, the partition is placed in the first disk extent that is large enough to hold it. ALIGN= Typically used with hardware RAID Logical Unit Number (LUN) arrays to improve performance. The partition offset will be a multiple of . If the OFFSET parameter is specified, it will be rounded to the closest multiple of . NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. After the partition has been created, the focus automatically shifts to the new logical partition. A basic MBR disk must be selected for this operation to succeed.Example: CREATE PARTITION LOGICAL SIZE=1000
0x40002EFF在 GUID 分区表(GPT)磁盘上创建 Microsoft 保留(MSR) 分区。语法: CREATE PARTITION MSR [SIZE=] [OFFSET=] [NOERR] SIZE= 分区大小,以兆字节(MB)为单位。分区的字节数至少与 N 指定的数相同。如果未给定大小, 则会继续创建分区,直到当前区域中没有 更多可用空间。 OFFSET= 创建分区所处的偏移,以千字节(KB) 为单位。如果未给定偏移,则将分区放置在 有足够空间容纳它的第一个磁盘盘区中。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出 并返回错误代码。 必须选择一个基本 GPT 磁盘才能成功执行此操作。 警告: 请谨慎使用该命令。由于 GPT 磁盘需要 特定的分区布局,因此创建 Microsoft 保留分区可能 导致磁盘无法读取。在用于启动 Windows 的 GPT 磁盘上,EFI 系统分区是该磁盘上的第一个分区, 然后是 Microsoft 保留分区。仅用于数据存储的 GPT 磁盘没有 EFI 系统 分区,在此情况下,Microsoft 保留分区是第一个分区。 Windows 不会使 Microsoft 保留分区联机。不能在这些分区上存储 数据,也不能删除这些分区。示例: CREATE PARTITION MSR SIZE=1000 Creates a Microsoft Reserved (MSR) partition on a GUID partition table (GPT) disk.Syntax: CREATE PARTITION MSR [SIZE=] [OFFSET=] [NOERR] SIZE= The size of the partition in megabytes (MB). The partition is at least as big in bytes as the number specified by N. If no size is given, the partition continues until there is no more free space in the current region. OFFSET= The offset, in kilobytes (KB), at which the partition is created. If no offset is given, the partition is placed in the first disk extent that is large enough to hold it. NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. A basic GPT disk must be selected for this operation to succeed. Caution: Be very careful when using this command. Because GPT disks require a specific partition layout, creating Microsoft Reserved partitions could cause the disk to become unreadable. On GPT disks that are used to boot Windows, the EFI System partition is the first partition on the disk, followed by the Microsoft Reserved partition. GPT disks used only for data storage do not have an EFI System partition, in which case the Microsoft Reserved partition is the first partition. Windows does not online Microsoft Reserved partitions. You cannot store data on them and you cannot delete them.Example: CREATE PARTITION MSR SIZE=1000
0x40002F01在带焦点的基本磁盘上创建主分区。语法: CREATE PARTITION PRIMARY [SIZE=] [OFFSET=] [ID={ | }] [ALIGN=] [NOERR] SIZE= 分区大小,以兆字节(MB)为单位。如果 未给定大小,则会继续创建分区,直到当前区域中没有 更多未分配的空间。 OFFSET= 创建分区所处的偏移量,以千字节(KB) 为单位。如果未给定偏移量,则将分区放置在 有足够空间容纳它的第一个磁盘盘区中。 ID={ | } 指定分区类型。 仅适合原始设备制造商(OEM)使用。 对于主启动记录(MBR)磁盘,可以为分区指定十六进制形式的 分区类型字节。 如果未为 MBR 磁盘指定此参数,该命令将创建 类型为 0x06 (指定不安装任何文件系统)的分区。 LDM 数据分区: 0x42 恢复分区: 0x27 识别的 OEM ID: 0x12 0x84 0xDE 0xFE 0xA0 对于 GUID 分区表(GPT)磁盘,可以为要创建的分区指定 分区类型 GUID。 已识别的 GUID 包括: EFI 系统分区: c12a7328-f81f-11d2-ba4b-00a0c93ec93b Microsoft 保留分区: e3c9e316-0b5c-4db8-817d-f92df00215ae 基本数据分区: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 动态磁盘上的 LDM 元数据分区: 5808c8aa-7e8f-42e0-85d2-e1e90434cfb3 动态磁盘上的 LDM 数据分区: af9b60a0-1431-4f62-bc68-3311714a69ad 恢复分区: de94bba4-06d1-4d40-a16a-bfd50179d6ac 如果未对 GPT 磁盘指定此参数,该命令将创建 基本数据分区。 可以使用此参数指定任何分区类型字节或 GUID。 DiskPart 不会检查分区类型是否有效, 只是确保此分区类型为十六进制形式字节或 GUID。 警告: 使用此参数创建分区可能导致 计算机发生故障或无法启动。除非你是 OEM 或熟悉 GPT 磁盘的 IT 专业人员,否则不要使用此参数在 GPT 磁盘上创建分区。 而是应该在 GPT 磁盘上使用 CREATE PARTITION EFI 命令 创建 EFI 系统分区,使用 CREATE PARTITION MSR 命令创建 Microsoft 保留分区,使用 不带此参数的 CREATE PARTITION PRIMARY 命令 创建主分区。 ALIGN= 通常与硬件 RAID 逻辑单元号(LUN) 阵列一同使用来提高性能。分区 偏移将是 的倍数。如果指定了 OFFSET 参数,则将四舍五入 为最接近的 的倍数。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出 并返回错误代码。 创建分区之后,焦点会自动移动到新分区。 该分区未接收驱动器号。必须使用 assign 命令为该分区分配一个驱动器号。 必须选择一个基本磁盘才能成功执行此操作。 如果未指定分区类型,磁盘未初始化且磁盘大小大于 2TB, 则该磁盘将初始化为 GPT。示例: CREATE PARTITION PRIMARY SIZE=1000 CREATE PARTITION PRIMARY SIZE=128 ID=c12a7328-f81f-11d2-ba4b-00a0c93ec93b CREATE PARTITION PRIMARY SIZE=10000 ID=12 CREATE PARTITION PRIMARY SIZE=10000 ID=DE Creates a primary partition on the basic disk with focus.Syntax: CREATE PARTITION PRIMARY [SIZE=] [OFFSET=] [ID={ | }] [ALIGN=] [NOERR] SIZE= The size of the partition in megabytes (MB). If no size is given, the partition continues until there is no more unallocated space in the current region. OFFSET= The offset, in kilobytes (KB), at which the partition is created. If no offset is given, the partition is placed in the first disk extent that is large enough to hold it. ID={ | } Specifies the partition type. Intended for Original Equipment Manufacturer (OEM) use only. For master boot record (MBR) disks, you can specify a partition type byte, in hexadecimal form, for the partition. If this parameter is not specified for an MBR disk, the command creates a partition of type 0x06 (specifies no file system is installed). LDM data partition: 0x42 Recovery partition: 0x27 Recognized OEM Ids: 0x12 0x84 0xDE 0xFE 0xA0 For GUID partition table (GPT) disks you can specify a partition type GUID for the partition you want to create. Recognized GUIDs include: EFI System partition: c12a7328-f81f-11d2-ba4b-00a0c93ec93b Microsoft Reserved partition: e3c9e316-0b5c-4db8-817d-f92df00215ae Basic data partition: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 LDM Metadata partition on a dynamic disk: 5808c8aa-7e8f-42e0-85d2-e1e90434cfb3 LDM Data partition on a dynamic disk: af9b60a0-1431-4f62-bc68-3311714a69ad Recovery partition: de94bba4-06d1-4d40-a16a-bfd50179d6ac If this parameter is not specified for a GPT disk, the command creates a basic data partition. Any partition type byte or GUID can be specified with this parameter. DiskPart does not check the partition type for validity except to ensure that it is a byte in hexadecimal form or a GUID. Caution: Creating partitions with this parameter might cause your computer to fail or be unable to start up. Unless you are an OEM or an IT professional experienced with GPT disks, do not create partitions on GPT disks using this parameter. Instead, always use the CREATE PARTITION EFI command to create EFI System partitions, the CREATE PARTITION MSR command to create Microsoft Reserved partitions, and the CREATE PARTITION PRIMARY command without this parameter to create primary partitions on GPT disks. ALIGN= Typically used with hardware RAID Logical Unit Number (LUN) arrays to improve performance. The partition offset will be a multiple of . If the OFFSET parameter is specified, it will be rounded to the closest multiple of . NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. After you create the partition, the focus automatically shifts to the new partition. The partition does not receive a drive letter. You must use the assign command to assign a drive letter to the partition. A basic disk must be selected for this operation to succeed. If a partition type is not specified, the disk is uninitialized and disk size is greater than 2TB, it will be initialized to GPT.Example: CREATE PARTITION PRIMARY SIZE=1000 CREATE PARTITION PRIMARY SIZE=128 ID=c12a7328-f81f-11d2-ba4b-00a0c93ec93b CREATE PARTITION PRIMARY SIZE=10000 ID=12 CREATE PARTITION PRIMARY SIZE=10000 ID=DE
0x40002F03使用三个或更多指定的动态磁盘创建 RAID-5 卷。语法: CREATE VOLUME RAID [SIZE=] DISK=,,[,[,...]] [ALIGN=] [NOERR] SIZE= 该卷在每个磁盘上占用的磁盘空间量, 单位为兆字节(MB)。如果未给定大小,将创建 尽可能大的 RAID-5 卷。具有最小可用连续 空间的磁盘决定了 RAID-5 卷的大小, 并且从每个磁盘分配相同的空间量。RAID-5 卷中实际可用磁盘空间量小于磁盘 空间的总容量,因为某些磁盘空间需要 用于奇偶校验。 DISK=,,[,[,...]] 在其上创建 RAID-5 卷的动态磁盘。至少 需要三个动态磁盘才能创建 RAID-5 卷。 每个磁盘上分配等于 SIZE= 中指定的大小的 空间量。 ALIGN= 通常与硬件 RAID 逻辑单元号(LUN)阵列 一起使用以提高性能。 将所有卷范围与最近的对齐边界对齐。 范围偏移将为 的倍数。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续 处理命令,如同没有出现错误一样。如果不使用 NOERR 参数,错误会导致 DiskPart 退出并返回错误代码。 创建该卷之后,焦点将自动移动到新卷上。 Windows Vista 的任何版本都不支持容错卷(如 RAID-5)和镜像卷。示例: CREATE VOLUME RAID SIZE=1000 DISK=1,2,3 Creates a RAID-5 volume using three or more specified dynamic disks.Syntax: CREATE VOLUME RAID [SIZE=] DISK=,,[,[,...]] [ALIGN=] [NOERR] SIZE= The amount of disk space, in megabytes (MB), that the volume will occupy on each disk. If no size is given, the largest possible RAID-5 volume will be created. The disk with the smallest available contiguous free space determines the size for the RAID-5 volume and the same amount of space is allocated from each disk. The actual amount of usable disk space in the RAID-5 volume is less than the combined amount of disk space because some of the disk space is required for parity. DISK=,,[,[,...]] The dynamic disks on which to create the RAID-5 volume. You need at least three dynamic disks in order to create a RAID-5 volume. An amount of space equal to the size specified in SIZE= is allocated on each disk. ALIGN= Typically used with hardware RAID Logical Unit Number (LUN) arrays to improve performance. Aligns all volume extents to the closest alignment boundary. The extent offsets will be a multiple of . NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. After you create the volume, the focus automatically shifts to the new volume. Fault-tolerant volumes such as RAID-5 and mirrored volumes are not supported in any edition of Windows Vista.Example: CREATE VOLUME RAID SIZE=1000 DISK=1,2,3
0x40002F05创建简单卷。语法: CREATE VOLUME SIMPLE [SIZE=] [DISK=] [ALIGN=] [NOERR] SIZE= 卷的大小,以兆字节(MB)为单位。如果未给定 大小,新卷将占据磁盘上的剩余可用空间。 DISK= 在其上创建该卷的动态磁盘。如果未指定磁盘, 则使用当前磁盘。 ALIGN= 通常与硬件 RAID 逻辑单元号(LUN)阵列一起 使用以便提高性能。 将所有卷范围与最近的对齐边界对齐。 范围偏移将为 的倍数。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续 处理命令,如同没有出现错误一样。如果不使用 NOERR 参数,错误会导致 DiskPart 退出并返回错误代码。 创建该卷之后,焦点将自动移动到新卷上。示例: CREATE VOLUME SIMPLE SIZE=1000 DISK=1 Creates a simple volume.Syntax: CREATE VOLUME SIMPLE [SIZE=] [DISK=] [ALIGN=] [NOERR] SIZE= The size of the volume in megabytes (MB). If no size is given, the new volume takes up the remaining free space on the disk. DISK= The dynamic disk on which the volume is created. If no disk is given, the current disk is used. ALIGN= Typically used with hardware RAID Logical Unit Number (LUN) arrays to improve performance. Aligns all volume extents to the closest alignment boundary. The extent offsets will be a multiple of . NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. After you create the volume, the focus automatically shifts to the new volume.Example: CREATE VOLUME SIMPLE SIZE=1000 DISK=1
0x40002F07使用两个或更多的指定动态磁盘创建带区卷。语法: CREATE VOLUME STRIPE [SIZE=] DISK=,[,[,...]] [ALIGN=] [NOERR] SIZE= 该卷在每个磁盘上占用的磁盘空间量,单位为 兆字节(MB)。如果没有给定大小,新卷将占据最小 磁盘上的剩余可用空间,并在每个后续磁盘上 占据与此相同的空间。 DISK=,[,[,...]] 在其上创建带区卷的动态磁盘。至少需要两个 动态磁盘才能创建带区卷。每个磁盘上分配等于 SIZE= 中指定的大小的空间量。 ALIGN= 通常与硬件 RAID 逻辑单元号(LUN)阵列一起 使用以提高性能。 将所有卷范围与最近的对齐边界对齐。 范围偏移将为 的倍数。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续 处理命令,如同没有出现错误一样。如果不使用 NOERR 参数,错误会导致 DiskPart 退出并返回错误代码。 创建该卷之后,焦点将自动移动到新卷上。示例: CREATE VOLUME STRIPE SIZE=1000 DISK=1,2 Creates a striped volume using two or more specified dynamic disks.Syntax: CREATE VOLUME STRIPE [SIZE=] DISK=,[,[,...]] [ALIGN=] [NOERR] SIZE= The amount of disk space, in megabytes (MB), that the volume will occupy on each disk. If no size is given, the new volume takes up the remaining free space on the smallest disk and an equal amount of space on each subsequent disk. DISK=,[,[,...]] The dynamic disks on which the striped volume is created. You need at least two dynamic disks to create a striped volume. An amount of space equal to the size specified in SIZE= is allocated on each disk. ALIGN= Typically used with hardware RAID Logical Unit Number (LUN) arrays to improve performance. Aligns all volume extents to the closest alignment boundary. The extent offsets will be a multiple of . NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. After you create the volume, the focus automatically shifts to the new volume.Example: CREATE VOLUME STRIPE SIZE=1000 DISK=1,2
0x40002F09从磁盘列表中删除丢失的动态磁盘。语法: DELETE DISK [NOERR] [OVERRIDE] NOERR 仅用于脚本。遇到错误时,DiskPart 会继续 处理命令,如同没有出现错误一样。如果不使用 NOERR 参数,错误会导致 DiskPart 退出并返回错误代码。 OVERRIDE 使 DiskPart 能够删除磁盘上的所有简单卷。如果 该磁盘包含镜像卷的一半,则将在磁盘上删除 该镜像卷的这一半。如果该磁盘是 RAID-5 卷的 成员,则 delete disk override 命令会失败。 必须选择一个丢失的动态磁盘才能成功执行此操作。示例: DELETE DISK Deletes a missing dynamic disk from the disk list.Syntax: DELETE DISK [NOERR] [OVERRIDE] NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. OVERRIDE Enables DiskPart to delete all simple volumes on the disk. If the disk contains half of a mirrored volume, the half of the mirror on the disk is deleted. The delete disk override command fails if the disk is a member of a RAID-5 volume. A missing dynamic disk must be selected for this operation to succeed.Example: DELETE DISK
0x40002F0B删除带焦点的分区。语法: DELETE PARTITION [NOERR] [OVERRIDE] NOERR 仅用于脚本。遇到错误时,DiskPart 会继续 处理命令,如同没有出现错误一样。如果不使用 NOERR 参数,错误会导致 DiskPart 退出并返回错误代码。 OVERRIDE 使 DiskPart 能够删除任何分区,无论该分区 属于何种类型。通常,DiskPart 只允许删除 已知的数据分区。 你无法删除系统分区、启动分区或任何包含活动页面文件 或故障转储(内存转储)文件的分区。 必须选择一个分区才能成功执行此操作。 无法从动态磁盘删除分区或在动态磁盘上创建分区。示例: DELETE PARTITION Deletes the partition with focus.Syntax: DELETE PARTITION [NOERR] [OVERRIDE] NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. OVERRIDE Enables DiskPart to delete any partition regardless of type. Typically, DiskPart only permits you to delete known data partitions. You cannot delete the system partition, boot partition, or any partition that contains the active paging file or crash dump (memory dump) filed. A partition must be selected for this operation to succeed. Partitions cannot be deleted from dynamic disks or created on dynamic disks.Example: DELETE PARTITION
0x40002F0D删除选定的卷。语法: DELETE VOLUME [NOERR] NOERR 仅用于脚本。遇到错误时,DiskPart 会继续 处理命令,如同没有出现错误一样。如果不使用 NOERR 参数,错误会导致 DiskPart 退出并返回错误代码。 你无法删除当前系统卷、启动分区或包含活动页面文件 或故障转储(内存转储)文件的任何卷。 必须选择一个卷才能成功执行此操作。示例: DELETE VOLUME Deletes the selected volume.Syntax: DELETE VOLUME [NOERR] NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. You cannot delete the current system volume, boot volume, or any volume that contains the active paging file or crash dump (memory dump) file. A volume must be selected for this operation to succeed.Example: DELETE VOLUME
0x40002F0F显示所选磁盘的属性和该磁盘上的卷列表。语法: DETAIL DISK 必须选择一个磁盘才能成功执行此操作。示例: DETAIL DISK Displays the properties of the selected disk and the list of volumes on the disk.Syntax: DETAIL DISK A disk must be selected for this operation to succeed.Example: DETAIL DISK
0x40002F11显示所选分区的属性。语法: DETAIL PARTITION 必须选择一个分区才能成功执行此操作。示例: DETAIL PARTITION Displays the properties for the selected partition.Syntax: DETAIL PARTITION A partition must be selected for this operation to succeed.Example: DETAIL PARTITION
0x40002F13显示所选卷的属性和该卷所在的磁盘列表。语法: DETAIL VOLUME 必须选择一个卷才能成功执行此操作。示例: DETAIL VOLUME Displays the properties for the selected volume and the list of disks on which the volume resides.Syntax: DETAIL VOLUME A volume must be selected for this operation to succeed.Example: DETAIL VOLUME
0x40002F15退出 DiskPart 命令解释器。语法: EXIT示例: EXIT Exits the DiskPart command interpreter.Syntax: EXITExample: EXIT
0x40002F17将带焦点的卷或分区及其文件系统扩展到磁盘上 的可用(未分配)空间。语法: EXTEND [SIZE=] [DISK=] [NOERR] EXTEND FILESYSTEM [NOERR] SIZE= 指定要添加到当前卷或分区的空间量 (以兆字节(MB)为单位)。如果未给定大小,则使用 可在磁盘上获得的所有连续可用空间。 DISK= 指定要在其上扩展该卷或分区的磁盘。如果 未指定磁盘,则在当前磁盘上扩展该卷 或分区。 FILESYSTEM 扩展带焦点的卷的文件系统以覆盖整个卷。仅在未使用 该卷扩展文件系统的卷上使用。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续 处理命令,如同没有出现错误一样。如果不使用 NOERR 参数,错误会导致 DiskPart 退出并返回错误代码。 在基本磁盘上,可用空间与带焦点的卷或分区必须 位于同一个磁盘上。可用空间还必须紧跟在带焦点的卷 或分区之后(在下一个扇区偏移处开始)。 在具有简单卷或跨区卷的动态磁盘上,可以将卷扩展 到任何动态磁盘上的任何可用空间。使用该命令,可以将 简单的动态卷转换成跨区的动态卷。不能扩展镜像卷、RAID-5 卷和带区卷。 如果先前已使用 NTFS 文件系统格式化分区,则会自动 扩展该文件系统以填充更大分区。不会出现数据丢失。 如果先前使用 NTFS 之外的其他文件系统格式化分区, 则该命令将会失败,不会对分区进行任何更改。 如果先前未使用文件系统格式化该分区,则仍然会 扩展该分区。 必须选择一个卷或分区才能继续执行此操作。示例: EXTEND SIZE=500 DISK=3 EXTEND FILESYSTEM Extends the volume or partition with focus, and its file system, into free (unallocated) space on a disk.Syntax: EXTEND [SIZE=] [DISK=] [NOERR] EXTEND FILESYSTEM [NOERR] SIZE= Specifies the amount of space in megabytes (MB) to add to the current volume or partition. If no size is given, all of the contiguous free space that is available on the disk is used. DISK= Specifies the disk on which the volume or partition is extended. If no disk is specified, the volume or partition is extended on the current disk. FILESYSTEM Extends the file system of the volume with focus to cover the entire volume. For use only on volumes where the file system was not extended with the volume. NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. On basic disks, the free space must be on the same disk as the volume or partition with focus. The free space must also immediately follow the volume or partition with focus (start at the next sector offset). On dynamic disks with simple or spanned volumes, a volume can be extended to any free space on any dynamic disk. Using this command, you can convert a simple dynamic volume into a spanned dynamic volume. Mirrored, RAID-5 and striped volumes cannot be extended. If the partition was previously formatted with the NTFS file system, the file system is automatically extended to fill the larger partition. No data loss occurs. If the partition was previously formatted with a different file system than NTFS, the command fails with no change to the partition. If the partition was not previously formatted with a file system, the partition will still be extended. A volume or partition must be selected for this operation to succeed.Example: EXTEND SIZE=500 DISK=3 EXTEND FILESYSTEM
0x40002F19在基本 GUID 分区表(GPT)磁盘上,将 GPT 属性分配给带焦点的分区。语法: GPT ATTRIBUTES= ATTRIBUTES= 表示可应用于带焦点的分区的属性的十六进制值。GPT 属性字段 是一个 64 位字段,该字段包含两个子字段。高位字段只有在特 定分区类型 GUID 的环境中才进行解释,而低位字段则是所有分 区类型公用的字段。 可以在所有分区上设置以下属性: 0x0000000000000001 将该分区标记为必需分区。这向所有的磁 盘管理实用工具表明该分区不应被删除。EFI 系统分区仅包含 启动操作系统所需的二进制数据。这样可以轻松地将原始设备制造 商(OEM)或操作系统特定的二进制数据放置在其他分区中。 对于基本数据分区,定义了以下属性: 0x8000000000000000 GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER 防止为分区自动分配驱动器号。默认情况下,会为每个分区分配 一个新驱动器号和卷 GUID 路径名。驱动器号和卷 GUID 路径名 都可用于打开使用 Win32 API 的卷。设置此属性可确保在将磁盘 移动到新计算机上时,系统不会自动生成新的驱动器号。而用户可 以手动分配驱动器号。 0x4000000000000000 GPT_BASIC_DATA_ATTRIBUTE_HIDDEN 将分区的卷定义为隐藏。 设置此属性可指定不会为卷分配驱动器号或卷 GUID 路径名。 驱动器号和卷 GUID 路径名都可用于打开使用 Win32 API 的卷。 Win32 API 不会报告隐藏分区的卷,例如 FindFirstVolume 和 FindNextVolume。 0x2000000000000000 GPT_BASIC_DATA_ATTRIBUTE_SHADOW_COPY 将分区定义为卷快照服务卷影副本卷。文件系统筛选器使用此标志 阻止筛选器附加到卷中。 x1000000000000000 GPT_BASIC_DATA_ATTRIBUTE_READ_ONLY 阻止写入卷。 Microsoft 可能会随时添加其他属性。 GPT 分区属性提供有关该分区使用情况的附加信息。 必须选择一个基本 GPT 分区才能继续执行此操作。     警告: 更改 GPT 属性可能会导致无法为基本数据卷分配驱动器号,或阻止装载文件 系统。除非你是原始设备制造商(OEM)或熟悉 GPT 磁盘的 IT 专业人士,否则 请勿更改 GPT 属性。示例: GPT ATTRIBUTES=0x8000000000000000 GPT ATTRIBUTES=0xF000000000000001 On basic GUID partition table (GPT) disks, assigns the GPT attribute(s) to the partition with focus.Syntax: GPT ATTRIBUTES= ATTRIBUTES= The hexadecimal value indicating the attributes to apply to the partition with focus. The GPT attribute field is a 64-bit field that contains two subfields. The higher field is interpreted only in the context of a particular partition type GUID, while the lower field is common to all partition types. The following attribute can be set on any partition: 0x0000000000000001 marks the partition as required. This indicates to all disk management utilities that the partition should not be deleted. The EFI System partition contains only those binaries necessary to start the operating system. This makes it easy for original equipment manufacturer (OEM) or operating system-specific binaries to be placed in other partitions. For basic data partitions, the following attributes are defined: 0x8000000000000000 GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER Prevents the partition from having a drive letter automatically assigned. By default, each partition is assigned a new drive letter and a volume GUID pathname. Both the drive letter and the volume GUID pathname can be used to open the volume using Win32 APIs. Setting this attribute ensures that when a disk is moved to a new computer, a new drive letter will not be automatically generated. Instead, the user can manually assign drive letters. 0x4000000000000000 GPT_BASIC_DATA_ATTRIBUTE_HIDDEN Defines the partition's volume as hidden. Setting this attribute specifies that the volume will not be assigned a drive letter or a volume GUID pathname. Both the drive letter and the volume GUID pathname can be used to open the volume using Win32 APIs. A hidden partition's volume is not reported by Win32 APIs such as FindFirstVolume and FindNextVolume. 0x2000000000000000 GPT_BASIC_DATA_ATTRIBUTE_SHADOW_COPY Defines the partition as being a Volume Snapshot Service shadow copy volume. Fle system filters use this flag to prevent the filter from attaching to the volume. 0x1000000000000000 GPT_BASIC_DATA_ATTRIBUTE_READ_ONLY Prevents the volume from being written to. Other attributes may be added by Microsoft at any time. GPT partition attributes give additional information about the use of the partition. A basic GPT partition must be selected for this operation to succeed. Caution: Changing the GPT attributes might cause your basic data volumes to fail to be assigned drive letters, or prevent the file system from mounting. Unless you are an original equipment manufacturer (OEM) or an IT professional experienced with GPT disks, do not change GPT attributes.Example: GPT ATTRIBUTES=0x8000000000000000 GPT ATTRIBUTES=0xF000000000000001
0x40002F1B显示可用命令列表或指定命令的详细帮助信息。语法: HELP [] 要显示其详细帮助的命令。 如果未指定命令,HELP 将显示所有可能的命令。示例: HELP HELP CREATE PARTITION PRIMARY Displays a list of the available commands or detailed help information for a specified command.Syntax: HELP [] The command for which to display detail help. If no command is specified, HELP will display all possible commands.Example: HELP HELP CREATE PARTITION PRIMARY
0x40002F1D将外部磁盘组导入到本地计算机的联机磁盘组。语法: IMPORT [NOERR] NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令,如同没有出现 错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出并返回错误代码。 此命令将位于同一组中的每个磁盘作为带焦点的磁盘导入。 必须选择动态磁盘才能继续执行该操作。示例: IMPORT Imports a foreign disk group into the local computer's online disk group.Syntax: IMPORT [NOERR] NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. The command imports every disk that is in the same group as the disk with focus. A dynamic disk must be selected for this operation to succeed.Example: IMPORT
0x40002F1F在格式为主启动记录(MBR)磁盘的磁盘上,将带焦点的分区标记为非活动分区。语法: INACTIVE 重新启动计算机时,计算机将从 BIOS 中指定的下一选项启动,例如 CD-ROM 驱动器或基于预启动执行环境(PXE)的启动环境(例如远程安装服务(RIS))。 必须选择一个分区才能成功执行此操作。 警告: 如果没有活动分区,则计算机可能无法启动。请勿将系统分区或启动分区 标记为非活动分区,除非你是对 Windows 存储管理有着透彻理解的经验丰 富的用户。示例: INACTIVE On disks with master boot record (MBR) disk formatting, marks the partition with focus as inactive.Syntax: INACTIVE The computer may start from the next option specified in the BIOS such as a CD-ROM drive or a Pre-Boot eXecution Environment (PXE)-based boot environment (such as Remote Installation Services (RIS)) when you restart the computer. A partition must be selected for this operation to succeed. Caution: Your computer might not start without an active partition. Do not mark a system or boot partition as inactive unless you are an experienced user with a thorough understanding of Windows storage management.Example: INACTIVE
0x40002F21显示磁盘列表。语法: LIST DISK 显示磁盘列表及其相关信息,例如磁盘大小、可用空间量、该磁盘是基本磁盘 还是动态磁盘以及该磁盘是使用主启动记录(MBR)还是 GUID 分区表(GPT)分区 形式。使用星号(*)标记的磁盘具有焦点。 请注意 FREE 列不显示磁盘上的可用空间总量,而显示磁盘上剩余的可用空间 量。例如,如果你的磁盘大小为 10GB,其中 4 个主分区占了 5GB,没有剩余 的可用空间(未创建更多的分区)。另一个示例是你的磁盘大小为 10GB,其中 包含 3 个主分区和一个扩展分区,一共占 8GB。扩展分区的大小为 3GB,其中 包含一个大小为 2GB 的逻辑驱动器。该磁盘的可用空间将仅显示为 1GB - 为 扩展分区中的 1GB 可用空间。示例: LIST DISK Displays a list of disks.Syntax: LIST DISK Displays a list of disks and information about them, such as their size, amount of available free space, whether the disk is a basic or dynamic disk, and whether the disk uses the master boot record (MBR) or GUID partition table (GPT) partition style. The disk marked with an asterisk (*) has focus. Note that the FREE column does not display the total amount of free space on the disk, but rather the amount of usable free space left on the disk. For example, if you have a 10GB disk with 4 primary partitions covering 5GB, there is no usable free space left (no more partitions may be created). Another example would be you have a 10GB disk with 3 primary partitions and an extended partition covering 8GB. The exended partition is of size 3GB with one logical drive of size 2GB. The disk will show only 1GB as free - the 1GB of free space in the extended partition.Example: LIST DISK
0x40002F23显示所选磁盘分区表中的分区列表。语法: LIST PARTITION 在动态磁盘上,分区不一定与磁盘上的动态卷一一对应。 可能未在动态磁盘上创建或删除分区。 必须选择一个磁盘才能继续执行此操作。示例: LIST PARTITION Displays a list of partitions in the partition table for the selected disk.Syntax: LIST PARTITION On dynamic disks, the partitions do not neccessarily correspond to the dynamic volumes on the disk. Partitions may not be created or deleted on dynamic disks. A disk must be selected for this operation to succeed.Example: LIST PARTITION
0x40002F25显示安装在本地计算机上的基本卷和动态卷的列表。语法: LIST VOLUME示例: LIST VOLUME Displays a list of basic and dynamic volumes which are installed on the local machine.Syntax: LIST VOLUMEExample: LIST VOLUME
0x40002F27使所选脱机磁盘处于联机状态。语法: ONLINE DISK [NOERR] NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出 并返回错误代码。 此命令在单个磁盘上运行。必须选择一个磁盘才能继续执行此操作。 此命令在处于 SAN 脱机模式的磁盘上运行。 如果为动态磁盘,且为只读状态、脱机,并且所需状态为读/写、联机, 则建议操作顺序为先将磁盘设为读/写,然后将磁盘联机。如果动态只读 磁盘联机,其状态将为“错误”。原因为当动态磁盘联机时,卷管理器 必须写入磁盘上的动态磁盘数据库,以便更新其状态。如果动态磁盘只读, 这些写操作将会失败。示例: ONLINE DISK Brings the selected offline disk to the online state.Syntax: ONLINE DISK [NOERR] NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. This command operates on a single disk. A disk must be selected for this operation to succeed. This command operates on a disk that is in SAN offline mode. If the disk is dynamic, it is both read only and offline, and, the desired state is read\\write and online, the suggested order of operations is to first make the disk read\\write, and then bring the disk online. If a dynamic read only disk is brought online, it's status will be 'Errors'. The reason for this is that when a dynamic disk is brought online, the volume manager must write to the Dynamic Disk Database on the disk to update it's state. These writes will fail if the dynamic disk is read only.Examples: ONLINE DISK
0x40002F29从带焦点的卷中删除驱动器号或装入的文件夹路径名。语法: REMOVE [LETTER= | MOUNT= | ALL] [DISMOUNT] [NOERR] LETTER= 要删除的驱动器号。 MOUNT= 要删除的装入文件夹的路径。 ALL 删除当前的所有驱动器号和装入的文件夹路径。 DISMOUNT 以下情况下会使用此参数: 1) 已从卷中删除所有的驱动器号及装入的文件夹路径, 2) 指定了 ALL 参数。该参数指定即将卸载文件系统并使卷脱机。 如果其他进程正在使用该卷,DiskPart 将在卸载文件系统并使卷脱机之前关闭任何打开的句柄。 通过为卷分配驱动器号或创建到卷的装入文件夹路径,或者 使用 ONLINE 命令,可以使卷联机。 如果使用的卷上具有任何剩余的驱动器号或装入文件夹路径, 则 DISMOUNT 将会失败。 对于脚本,建议使用 REMOVE ALL DISMOUNT。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令,如同 没有出现错误一样。如果不使用 NOERR 参数,错误会导致 DiskPart 退出并返回错误代码。 如果未指定驱动器号或装入文件夹路径,DiskPart 将删除遇到的第一个驱动 器号或装入文件夹路径。如果使用了 ALL 参数,则将删除当前的所有驱动器 号和装入文件夹路径。如果使用了 DISMOUNT 参数,DiskPart 将关闭所有已 打开的指向该卷的句柄,然后卸载该卷并使其脱机。 REMOVE 命令可用于更改与可移动驱动器相关联的驱动器号。无法删除启动卷 或页面卷上的驱动器号。 必须选择一个卷才能继续执行此操作。示例: REMOVE LETTER=K REMOVE MOUNT=G:\\MountH REMOVE ALL DISMOUNT Removes a drive letter or mounted folder pathname from the volume with focus.Syntax: REMOVE [LETTER= | MOUNT= | ALL] [DISMOUNT] [NOERR] LETTER= The drive letter to be removed. MOUNT= The mounted folder path to be removed. ALL Removes all current drive letters and mounted folder paths. DISMOUNT This parameter may be used if 1) all drive letters and mounted folder paths have been removed from the volume, or 2) the ALL parameter is specified. This parameter specifies that the file system is to be dismounted and the volume taken offline. If other processes are using the volume, DiskPart closes any open handles before dismounting the file system and taking the volume offline. You can bring the volume online by assigning it a driver letter, by creating a mounted folder path to the volume, or by using the ONLINE command. DISMOUNT will fail if used on a volume that has any remaining drive letters or mounted folder paths. For scripting, using REMOVE ALL DISMOUNT is recommended. NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. If no drive letter or mounted folder path is specified, DiskPart removes the first drive letter or mounted folder path it encounters. If the ALL parameter is used, all current drive letters and mounted folder paths are removed. If the DISMOUNT parameter is used, DiskPart closes all open handles to the volume and then dismounts the volume and takes it offline. The REMOVE command can be used to change the drive letter associated with a removable drive. You cannot remove the drive letters on boot or paging volumes. A volume must be selected for this operation to succeed.Example: REMOVE LETTER=K REMOVE MOUNT=G:\\MountH REMOVE ALL DISMOUNT
0x40002F2B通过使用指定的动态磁盘替换出现故障的 RAID-5 成员 修复带焦点的 RAID-5 卷。语法: REPAIR DISK= [ALIGN=] [NOERR] DISK= 指定将替换出现故障的 RAID-5 成员的动态 磁盘。指定磁盘的可用空间必须等于或大于 出现故障的 RAID-5 成员的总大小。 ALIGN= 通常与硬件 RAID 逻辑单元号(LUN)阵列一起 使用以便提高性能。将所有卷范围与最近的对齐边界对齐。 范围偏移将为 的倍数。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续 处理命令,如同没有出现错误一样。如果不使用 NOERR 参数,错误会导致 DiskPart 退出并返回错误代码。 指定的动态磁盘可用空间必须大于或等于出现故障的 RAID-5 成员的大小。 必须选择一个 RAID-5 卷才能继续执行此操作。示例: REPAIR DISK=1 Repairs the RAID-5 volume with focus by replacing the failed RAID-5 member with the specified dynamic disk.Syntax: REPAIR DISK= [ALIGN=] [NOERR] DISK= Specifies the dynamic disk that will replace the failed RAID-5 member. The specified disk must have free space equal to or larger than the total size of the failed RAID-5 member. ALIGN= Typically used with hardware RAID Logical Unit Number (LUN) arrays to improve performance. Aligns all volume extents to the closest alignment boundary. The extent offsets will be a multiple of . NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. The specified dynamic disk must have free space greater than or equal to the size of the failed RAID-5 member. A RAID-5 volume must be selected for this operation to succeed.Example: REPAIR DISK=1
0x40002F2D定位可能已添加到计算机的新磁盘。 语法: RESCAN示例: RESCAN Locates new disks that may have been added to the computer.Syntax: RESCANExample: RESCAN
0x40002F2F准备要用作启动卷或系统卷的现有动态简单卷。语法: RETAIN 该命令为带焦点的动态简单卷创建分区项。 必须选择一个动态简单卷才能成功执行此操作。示例: RETAIN Prepares an existing dynamic simple volume to be used as a boot or system volume.Syntax: RETAIN This command creates a partition entry for the dynamic simple volume with focus. A dynamic simple volume must be selected for this operation to succeed.Example: RETAIN
0x40002F31选择指定的磁盘并将焦点切换到该磁盘。语法: SELECT DISK= SELECT DISK=SYSTEM SELECT DISK=NEXT SELECT DISK= DISK= 要接收焦点的磁盘的 DiskPart 磁盘索引号。 DISK= 要接收焦点的磁盘的位置路径。 DISK=SYSTEM 在 BIOS 计算机上,BIOS 磁盘 0 将接收焦点。在 EFI 计算机上,用于当前启动的包含 ESP 分区的磁盘将接收 焦点。在 EFI 计算机上,如果没有 ESP,或者存在多个 ESP,或者计算机从 Windows PE 启动,该命令都将失败。 DISK=NEXT 选择磁盘后,将对磁盘列表中的所有磁盘循环执行 此命令。列表中的下一个磁盘将接收焦点。如果 下一个磁盘是枚举的开始位置,则此命令将失败, 任何磁盘将都没有焦点。 如果未指定选项,则 select 命令将列出当前带有焦点的 磁盘。你可以使用 LIST DISK 命令查看计算机上所有磁盘的 DiskPart 索引号。示例: SELECT DISK=1 SELECT DISK=SYSTEM SELECT DISK=NEXT SELECT DISK=PCIROOT(0)#PCI(0100)#ATA(C00T00L01) Selects the specified disk and shifts the focus to it.Syntax: SELECT DISK= SELECT DISK=SYSTEM SELECT DISK=NEXT SELECT DISK= DISK= The DiskPart disk index number of the disk to receive focus. DISK= The location path of the disk to receive focus. DISK=SYSTEM On BIOS machines, BIOS disk 0 will receive focus. On EFI machines, the disk containing the ESP partition used for the current boot will receive focus. On EFI machines, if there is no ESP, or there is more than one ESP present, or the machine is booted from Windows PE, the command will fail. DISK=NEXT Once a disk is selected, this command is used to iterate over all disks in the disk list. The next disk in the list will receive focus. If the next disk is the start of the enumeration, the command will fail and no disk will have focus. If no options are specified, the select command lists the disk that currently has the focus. You can view the DiskPart index numbers for all disks on the computer by using the LIST DISK command.Example: SELECT DISK=1 SELECT DISK=SYSTEM SELECT DISK=NEXT SELECT DISK=PCIROOT(0)#PCI(0100)#ATA(C00T00L01)
0x40002F33选择指定的分区并将焦点切换到该分区。语法: SELECT PARTITION= PARTITION= 要接收焦点的分区编号。 若未指定分区,select 命令将列出当前带有焦点的分区。 可以通过分区的编号指定分区。通过使用 list partition 命令可以查看当前磁盘上所有分区的编号。 必须先使用 DiskPart select disk 命令选择磁盘, 才可以选择分区。示例: SELECT PARTITION=1 Selects the specified partition and shifts the focus to it.Syntax: SELECT PARTITION= PARTITION= The number of the partition to receive the focus. If no partition is specified, the select command lists the current partition with focus. You can specify the partition by its number. You can view the numbers of all partitions on the current disk by using the list partition command. You must first select a disk using the DiskPart select disk command before you can select a partition.Example: SELECT PARTITION=1
0x40002F35选择指定的卷并将焦点切换到该卷。语法: SELECT VOLUME={ | } VOLUME= 要接收焦点的卷的编号。 VOLUME= 要接收焦点的卷的驱动器号或装入文件夹路径。 若未指定卷,select 命令将列出当前带有焦点的卷。 可以通过编号、驱动器号或装入文件夹路径指定卷。在基本 磁盘上,选择卷也就将焦点置于相应的分区上。通过使用 list volume 命令可以查看计算机上所有卷的编号。示例: SELECT VOLUME=1 SELECT VOLUME=C SELECT VOLUME=C:\\MountH Selects the specified volume and shifts the focus to it.Syntax: SELECT VOLUME={ | } VOLUME= The number of the volume to receive the focus. VOLUME= The drive letter or mounted folder path of the volume to receive the focus. If no volume is specified, the select command lists the current volume with focus. You can specify the volume by number, drive letter, or mounted folder path. On a basic disk, selecting a volume also gives the corresponding partition focus. You can view the numbers of all volumes on the computer by using the list volume command.Example: SELECT VOLUME=1 SELECT VOLUME=C SELECT VOLUME=C:\\MountH
0x40002F37提供向脚本添加注释的方法。语法: REM示例: 在此示例脚本中,REM 用于提供有关该脚本执行操作的注释。 REM These commands set up 3 drives. CREATE PARTITION PRIMARY SIZE=2048 ASSIGN d: CREATE PARTITION EXTEND CREATE PARTITION LOGICAL SIZE=2048 ASSIGN e: CREATE PARTITION LOGICAL ASSIGN f: Provides a way to add comments to a script.Syntax: REMExample: In this example script, REM is used to provide a comment about what the script does. REM These commands set up 3 drives. CREATE PARTITION PRIMARY SIZE=2048 ASSIGN d: CREATE PARTITION EXTEND CREATE PARTITION LOGICAL SIZE=2048 ASSIGN e: CREATE PARTITION LOGICAL ASSIGN f:
0x40002F39格式化指定卷以便在 Windows 中使用。语法: FORMAT [[FS=] [REVISION=] | RECOMMENDED] [LABEL=] [UNIT=] [QUICK] [COMPRESS] [OVERRIDE] [DUPLICATE] [NOWAIT] [NOERR] FS= 指定文件系统的类型。如果未指定文件系统, 则使用 FILESYSTEMS 命令显示的默认文件系统。 REVISION= 指定文件系统修订版(如果适用)。 RECOMMENDED 如果指定,则使用建议的文件系统和修订版 (如果存在),而不使用默认系统。可以通过 FILESYSTEMS 命令显示建议的文件系统 (如果存在)。 LABEL= 指定卷标。 UNIT= 替代默认分配单元大小。对于一般用途,强烈 建议使用默认设置。可以通过 FILESYSTEMS 命令显示特定文件系统的默认分配单元大小。 对于大于 4096 的分配单元大小,不支持 NTFS 压缩。 QUICK 执行快速格式化。 COMPRESS 仅限于 NTFS: 默认情况下压缩在新卷上创建的 文件。 OVERRIDE 如果必要,可强制先卸载文件系统。该卷 所有打开的句柄将不再有效。 DUPLICATE 仅限于 UDF: 该标志应用于 UDF 格式,版本 2.5 或更高。 该标志指示格式化操作将文件系统元数据复制到磁盘上的另一扇区集。 复制的元数据由操作系统使用,例如,用于修复或恢复应用程序。如果 发现主元数据扇区已损坏,则将从复制的扇区中读取文件系统元数据。 NOWAIT 强制该命令在格式化正在进行的过程中立即返回。 如果未指定 NOWAIT,DiskPart 将以百分比形式显示格式进度。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续 处理命令,如同没有出现错误一样。如果不使用 NOERR 参数,错误会导致 DiskPart 退出并返回错误代码。 必须选择一个卷才能继续执行此操作。示例: FORMAT FS=NTFS LABEL=\"New Volume\" QUICK COMPRESS FORMAT RECOMMENDED OVERRIDE Formats the specified volume for use with Windows.Syntax: FORMAT [[FS=] [REVISION=] | RECOMMENDED] [LABEL=] [UNIT=] [QUICK] [COMPRESS] [OVERRIDE] [DUPLICATE] [NOWAIT] [NOERR] FS= Specifies the type of file system. If no file system is given, the default file system displayed by the FILESYSTEMS command is used. REVISION= Specifies the file system revision (if applicable). RECOMMENDED If specified, use the recommended file system and revision instead of the default if a recommendation exists. The recommended file system (if one exists) is displayed by the FILESYSTEMS command. LABEL= Specifies the volume label. UNIT= Overrides the default allocation unit size. Default settings are strongly recommended for general use. The default allocation unit size for a particular file system is displayed by the FILESYSTEMS command. NTFS compression is not supported for allocation unit sizes above 4096. QUICK Performs a quick format. COMPRESS NTFS only: Files created on the new volume will be compressed by default. OVERRIDE Forces the file system to dismount first if necessary. All opened handles to the volume would no longer be valid. DUPLICATE UDF Only: This flag applies to UDF format, version 2.5 or higher. This flag instructs the format operation to duplicate the file system meta-data to a second set of sectors on the disk. The duplicate meta-data is used by applications, for example repair or recovery applications. If the primary meta-data sectors are found to be corrupted, the file system meta-data will be read from the duplicate sectors. NOWAIT Forces the command to return immediately while the format process is still in progress. If NOWAIT is not specified, DiskPart will display format progress in percentage. NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. A volume must be selected for this operation to succeed.Examples: FORMAT FS=NTFS LABEL=\"New Volume\" QUICK COMPRESS FORMAT RECOMMENDED OVERRIDE
0x40002F3B为带焦点的分区更改分区类型字段。语法: SET ID={ | } [OVERRIDE] [NOERR] ID={ | } 指定新分区类型。 对于主启动记录(MBR)磁盘,可以采用十六进制形式 为分区指定分区类型字节。可以使用此参数指定任何 分区类型字节,类型 0x42 (LDM 分区)除外。请注意, 指定十六进制分区类型时,会忽略前导的 \"0x\"。 对于 GUID 分区表(GPT)磁盘,可以为分区指定 分区类型 GUID。已识别的 GUID 包括: EFI 系统分区: c12a7328-f81f-11d2-ba4b-00a0c93ec93b 基本数据分区: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 可以使用此参数指定任何分区类型 GUID, 以下几种类型除外: Microsoft 保留分区: e3c9e316-0b5c-4db8-817d-f92df00215ae 动态磁盘上的 LDM 元数据分区: 5808c8aa-7e8f-42e0-85d2-e1e90434cfb3 动态磁盘上的 LDM 数据分区: af9b60a0-1431-4f62-bc68-3311714a69ad 群集元数据分区: db97dba9-0840-4bae-97f0-ffb9a327c7e1 除提及的限制之外,DiskPart 不会检查 分区类型是否有效,只是确保该分区类型 是十六进制形式的字节或 GUID。 OVERRIDE 启用 DiskPart 能够强制首先卸载卷上的文件系统, 然后再更改分区类型。更改分区类型时,DiskPart 将尝试锁定和卸载卷上的文件系统。如果未指定 此参数,并且锁定文件系统的调用失败(因为某些 其他应用程序具有卷的打开句柄),则整个操作将 失败。指定此参数时,将强制执行卸载, 即使锁定文件系统的调用失败也是如此。卸载文件系统后, 卷的所有打开句柄都将无效。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续 处理命令,如同没有出现错误一样。如果 不使用 NOERR 参数,错误会导致 DiskPart 退出,并返回错误代码。 仅供原始设备制造商(OEM)使用。 必须选择一个分区才能成功执行此操作。 警告: 使用此参数更改分区类型字段可能会导致计算机发生故障 或无法启动。除非你是 OEM 或熟悉 GPT 磁盘的 IT 专业人员,否则不要使用此参数更改 GPT 磁盘上 的分区类型字段。不过,始终可以在 GPT 磁盘上使用 CREATE PARTITION EFI 命令创建 EFI 系统分区,使用 CREATE PARTITION MSR 命令创建 Microsoft 保留分区 以及使用不带 ID 参数的 CREATE PARTITION PRIMARY 命令在 GPT 磁盘上创建主分区。 此命令在动态磁盘或 Microsoft 保留分区上无法使用。 示例: SET ID=07 OVERRIDE SET ID=ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 Changes the partition type field for the partition with focus.Syntax: SET ID={ | } [OVERRIDE] [NOERR] ID={ | } Specifies the new partition type. For master boot record (MBR) disks, you can specify a partition type byte, in hexadecimal form, for the partition. Any partition type byte can be specified with this parameter except for type 0x42 (LDM partition). Note that the leading '0x' is omitted when specifying the hexadecimal partition type. For GUID partition table (GPT) disks you can specify a partition type GUID for the partition. Recognized GUIDs include: EFI System partition: c12a7328-f81f-11d2-ba4b-00a0c93ec93b Basic data partition: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 Any partition type GUID can be specified with this parameter except for the following: Microsoft Reserved partition: e3c9e316-0b5c-4db8-817d-f92df00215ae LDM Metadata partition on a dynamic disk: 5808c8aa-7e8f-42e0-85d2-e1e90434cfb3 LDM Data partition on a dynamic disk: af9b60a0-1431-4f62-bc68-3311714a69ad Cluster Metadata partition: db97dba9-0840-4bae-97f0-ffb9a327c7e1 Other than the limitations mentioned, DiskPart otherwise does not check the partition type for validity except to ensure that it is a byte in hexadecimal form or a GUID. OVERRIDE Enables DiskPart to force the file system on the volume to dismount before changing the partition type. When changing the partition type, DiskPart will attempt to lock and dismount the file system on the volume. If this parameter is not specified, and the call to lock the file system fails, (because some other application has an open handle to the volume), the entire operation will fail. When this parameter is specified, the dismount is forced even if the call to lock the file system fails. When a file system is dismounted, all opened handles to the volume will become invalid. NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. Intended for Original Equipment Manufacturer (OEM) use only. A partition must be selected for this operation to succeed. Caution: Changing partition type fields with this parameter might cause your computer to fail or be unable to start up. Unless you are an OEM or an IT professional experienced with GPT disks, do not change partition type fields on GPT disks using this parameter. Instead, always use the CREATE PARTITION EFI command to create EFI System partitions, the CREATE PARTITION MSR command to create Microsoft Reserved partitions, and the CREATE PARTITION PRIMARY command without the ID parameter to create primary partitions on GPT disks. This command does not work on dynamic disks nor on Microsoft Reserved partitions. Example: SET ID=07 OVERRIDE SET ID=ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
0x40002F3D使带焦点的卷的大小减少指定的量。 从该卷末尾的未使用空间创建可用磁盘空间。语法: SHRINK [DESIRED=] [MINIMUM=] [NOWAIT] [NOERR] SHRINK QUERYMAX [NOERR] DESIRED= 指定要该卷减少的空间大小,单位为兆字节(MB)。 如果未指定所需量,则该卷减少的量为该卷上最大可用空间量。 MINIMUM= 指定要该卷减少的最小空间量,单位为 MB。 QUERYMAX 返回该卷可以减少的最大字节数(该卷上的可用空间)。 如果应用程序当前正在访问该卷,则该值可能会发生变化。 NOWAIT 强制该命令在收缩过程仍在进行时立即返回。 NOERR 仅用于脚本。出现错误时,DiskPart 会继续处理命令, 如同未出现错误一样。如果未使用 NOERR 参数, 错误会导致 DiskPart 退出并返回错误代码。 如果未指定 MINIMUM 量,则该卷将减少 DESIRED 量(如果已指定) 或该卷上可用空间的最大量。如果已指定 MINIMUM 量, 但没有足够的可用空间可用,则该命令将会失败。 此命令在基本卷以及简单卷或跨区动态卷上有效。 只有该卷使用 NTFS 文件系统格式化或该卷上没有文件系统时, 才可以减少卷的大小。 必须选择一个卷才能继续执行此操作。 不能在 OEM、ESP 或恢复分区上执行此命令。示例: SHRINK DESIRED=500 MINIMUM=250 SHRINK QUERYMAX Reduces the size of the volume with focus by the specified amount. Makes free disk space available from unused space at the end of the volume.Syntax: SHRINK [DESIRED=] [MINIMUM=] [NOWAIT] [NOERR] SHRINK QUERYMAX [NOERR] DESIRED= Specifies the desired amount of space in megabytes (MB) to reduce the size of the volume by. If a desired amount is not specified, the volume will be reduced by the maximum amount of free space available on the volume. MINIMUM= Specifies the minimum amount of space in MB to reduce the size of the volume by. QUERYMAX Returns the maximum number of bytes that the volume can be reduced by (the free space available on the volume). This value may change if applications are currently accessing the volume. NOWAIT Forces the command to return immediately while the shrink process is still in progress. NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. If a MINIMUM amount is not specified, the volume will be reduced by either the DESIRED amount (if specified), or by the maximum amount of free space available on the volume. If a MINIMUM amount is specified but not enough free space is available, the command will fail. This command works on basic volumes, and on simple or spanned dynamic volumes. You can reduce the size of a volume only if it is formatted using the NTFS file system or if it does not have a file system. A volume must be selected for this operation to succeed. This command does not operate on OEM, ESP or recovery partitions.Examples: SHRINK DESIRED=500 MINIMUM=250 SHRINK QUERYMAX
0x40002F3F显示有关选定卷的当前文件系统以及用于格式化该卷的受支持文件系统的信息。语法: FILESYSTEMS 必须选择一个卷才能成功执行此操作。示例: FILESYSTEMS Displays information about the current file system for the selected volume, and the supported file systems for formatting the volume.Syntax: FILESYSTEMS A volume must be selected for this operation to succeed.Example: FILESYSTEMS
0x40002F41将一个或多个磁盘从联机包移至新脱机包。语法: SPLIT DISK=[,[,...]] DISK=[,[,...]] 指定将从联机包中分隔的磁盘。 NOERR 仅用于脚本。出现错误时,DiskPart 会继续处理命令, 如同没有出现错误一样。如果未使用 NOERR 参数, 错误会导致 DiskPart 退出并返回错误代码。 至少必须指定一个磁盘才能成功执行此操作。 磁盘必须为当前联机包的一部分。磁盘将放置在新的脱机包中。 将包中的磁盘从一台计算机移至另一台计算机时,应使用该命令。 这将确保不会在多台计算机中使用相同的包 ID。示例: SPLIT DISK=1 SPLIT DISK=1,2 Moves one or more disks from an online pack to a new offline pack.Syntax: SPLIT DISK=[,[,...]] DISK=[,[,...]] Specifies the disk or disks that will be split from the online pack. NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. At least one disk must be specified for this operation to succeed. The disk(s) must be part of a pack that is currently online. The disk(s) will be placed in a new offline pack. You should use this command when you are moving disks in a pack from one computer to another. This ensures that the same pack ID is not used in more than one computer.Example: SPLIT DISK=1 SPLIT DISK=1,2
0x40002F42使所选的联机磁盘处于脱机状态。语法: OFFLINE DISK [NOERR] NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出 并返回错误代码。 此命令在单个磁盘上运行。 必须选择一个磁盘才能继续执行此操作。 此命令在处于 SAN 联机模式的磁盘上运行。 不能在 OEM、ESP 或恢复分区上运行此命令。示例: OFFLINE DISK Brings selected online disk to the offline state.Syntax: OFFLINE DISK [NOERR] NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. This command operates on a single disk. A disk must be selected for this operation to succeed. This command operates on a disk that is in SAN online mode. This command does not operate on OEM, ESP or recovery partitions.Examples: OFFLINE DISK
0x40002F43显示、设置或清除所选磁盘的磁盘属性。语法: ATTRIBUTES DISK [SET | CLEAR] [READONLY] [NOERR] SET 设置所选磁盘的指定属性。 CLEAR 清除所选磁盘的指定属性。 READONLY 指定磁盘为只读磁盘。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出 并返回错误代码。 此命令允许用户设置、清除或显示磁盘的属性,在进行无参数调用时,此命令会 显示当前的磁盘标志。READONLY 当前是可以进行更改的唯一磁盘标志。 BOOT DISK 属性表示用于启动的磁盘。对于动态镜像卷,为包含镜像启动卷的 启动丛的磁盘显示 BOOT DISK 属性。示例:若要显示所选磁盘的属性,请键入:ATTRIBUTES DISK若要将所选磁盘的属性设置为只读,请键入:ATTRIBUTES DISK SET READONLY若要清除所选磁盘的只读属性,请键入:ATTRIBUTES DISK CLEAR READONLY Displays, sets, or clears disk attributes for the selected disk.Syntax: ATTRIBUTES DISK [SET | CLEAR] [READONLY] [NOERR] SET Sets the specified attribute for the selected disk. CLEAR Clears the specified attribute for the selected disk. READONLY Specifies that the disk is read-only. NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. This command allows the user to set, clear, or display the attributes for a disk. When called with no parameters, this command displays the current disk flags. READONLY is currently the only disk flag that may be changed. The BOOT DISK attribute denotes the disk used to boot. For a dynamic mirrored volume, the BOOT DISK attribute is displayed for the disk containing the boot plex of the mirrored boot volume.Examples:To display the attributes on the selected disk, type:ATTRIBUTES DISKTo set the attribute for the selected disk as read-only, type:ATTRIBUTES DISK SET READONLYTo clear the read-only attribute for the selected disk, type:ATTRIBUTES DISK CLEAR READONLY
0x40002F44显示或设置用于操作系统的 SAN 策略。语法: SAN [POLICY={OnlineAll | OfflineAll | OfflineShared | OfflineInternal}] [NOERR] SAN 如果没有为该命令提供任何参数,将显示当前的 SAN 策略。 POLICY= 设置当前启动的操作 系统的 SAN 策略。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出 并返回错误代码。 此命令允许用户显示或更改 当前启动的操作系统的 SAN 策略。Windows Advanced Server 和 Windows Data Center 的默认策略是 OfflineShared。在这种情况下, 将使启动磁盘联机,就像使不位于共享总线 (如 SCSI、iSCSI、SAS 等)上的所有磁盘联机一样。默认情况下, 脱机磁盘将为只读磁盘。在所有其他版本的 Windows 上,默认情况下 将使 所有磁盘联机。在这种情况下,磁盘将处于联机和读/写状态。 第三方策略值为 OfflineAll。对于这种情况,默认情况下,除 启动磁盘外的所有磁盘都处于脱机和只读状态。前一策略值 为 OfflineInternal,默认情况下将新发现的内部 磁盘保持为脱机和只读状态。示例: SAN SAN POLICY=OfflineAll Displays or sets the SAN policy for the operating system.Syntax: SAN [POLICY={OnlineAll | OfflineAll | OfflineShared | OfflineInternal}] [NOERR] SAN If the command is given with no parameters, the current SAN policy is displayed. POLICY= Sets the SAN policy for the currently booted operating system. NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. This command allows the user to display or change the SAN policy for the currently booted OS. The default policy for Windows Advanced Server and Windows Data Center is OfflineShared. In this case the boot disk will be brought online, as will all disks that are not located on a shared bus such as SCSI, iSCSI, SAS, etc. The offlined disks will be read-only by default. On all other versions of Windows, the default will be to bring all disks online. In this case, the disks will be online and read/write. The third policy value is OfflineAll. For this case, all disks except the boot disk will be offline and read-only by default. The forth policy value is OfflineInternal and the default is to keep newly discovered internal disks offline and read-only.Examples: SAN SAN POLICY=OfflineAll
0x40002F45显示或设置带焦点的磁盘的 GUID 分区表(GPT)标识符或主启动记录(MBR)签名。语法: UNIQUEID DISK [ID={ | }] [NOERR] ID={ | } 对于 MBR 磁盘,可为签名以十六进制形式指定一个四字节(DWORD)值。 对于 GPT 磁盘,指定 GUID 作为标识符。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出 并返回错误代码。 必须选择一个磁盘才能使此操作成功。此命令在基本和动态磁盘上运行。示例: UNIQUEID DISK UNIQUEID DISK ID=5f1b2c36 UNIQUEID DISK ID=baf784e7-6bbd-4cfb-aaac-e86c96e166ee Displays or sets the GUID partition table (GPT) identifier or master boot record (MBR) signature for the disk with focus.Syntax: UNIQUEID DISK [ID={ | }] [NOERR] ID={ | } For MBR disks, you can specify a four-byte (DWORD) value in hexadecimal form for the signature. For GPT disks, specify a GUID for the identifier. NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. A disk must be selected for this operation to succeed. This command works on basic and dynamic disks.Example: UNIQUEID DISK UNIQUEID DISK ID=5f1b2c36 UNIQUEID DISK ID=baf784e7-6bbd-4cfb-aaac-e86c96e166ee
0x40002F4E刷新所选包中所有磁盘的状态,尝试恢复无效包中的磁盘, 并重新同步具有过时丛或奇偶校验数据的镜像卷和 RAID-5 卷。语法: RECOVER [NOERR] NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出 并返回错误代码。 此命令对包执行操作。 必须选择属于该包的一个磁盘才能继续执行此操作。 此命令仅适用于动态磁盘。如果在基本磁盘上调用,则该命令会成功, 但不执行任何操作。示例: RECOVER Refreshes the state of all disks in the selected pack, attempts recovery on disks in the invalid pack, and, resynchronizes mirrored volumes and RAID-5 volumes that have stale plex or parity data.Syntax: RECOVER [NOERR] NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. This command operates on a pack. A disk that is part of a pack must be selected for this operation to succeed. This command is only applicable to dynamic disks. If called on a basic disk, it will succeed but no action is taken.Example: RECOVER
0x40002F50使所选的脱机卷处于联机状态。语法: ONLINE VOLUME [NOERR] NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出 并返回错误代码。 此命令在单个卷上运行。 必须选择一个卷才能继续执行此操作。 不能在 OEM、ESP 或恢复分区上运行此命令。示例: ONLINE VOLUME Brings selected offline volume to the online state.Syntax: ONLINE VOLUME [NOERR] NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. This command operates on a single volume. A volume must be selected for this operation to succeed. This command does not operate on OEM, ESP or recovery partitions.Examples: ONLINE VOLUME
0x40002F51使所选的联机卷处于脱机状态。语法: OFFLINE VOLUME [NOERR] NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出并返回错误代码。 此命令在单个卷上运行。 必须选择一个卷才能使 此操作成功。示例: OFFLINE VOLUME Brings selected online volume to the offline state.Syntax: OFFLINE VOLUME [NOERR] NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. This command operates on a single volume. A volume must be selected for this operation to succeed.Examples: OFFLINE VOLUME
0x40002F52使用两个指定的动态磁盘创建镜像卷。语法: CREATE VOLUME MIRROR [SIZE=] DISK=, [ALIGN=] [NOERR] SIZE= 该卷在每个磁盘上占用的磁盘空间量, 单位为兆字节(MB)。如果未给定大小,新卷 将占据较小磁盘上的剩余可用空间, 并在其他磁盘上占据与此相同的空间量。 DISK=, 在其上创建镜像卷的动态磁盘。 需要两个动态磁盘才能创建镜像卷。每个磁盘上 分配等于 SIZE= 中指定的大小的 空间量。 ALIGN= 通常与硬件 RAID 逻辑单元号(LUN) 阵列一起使用以提高性能。将所有的卷扩展到 与最近的对齐边界对齐。扩展偏移将是 N 的倍数。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出 并返回错误代码。 创建该卷之后,焦点将自动移动到新卷上。示例: CREATE VOLUME MIRROR SIZE=1000 DISK=1,2 Creates a mirror volume using two specified dynamic disks.Syntax: CREATE VOLUME MIRROR [SIZE=] DISK=, [ALIGN=] [NOERR] SIZE= The amount of disk space, in megabytes (MB), that the volume will occupy on each disk. If no size is given, the new volume takes up the remaining free space on the smaller disk and an equal amount of space on other disk. DISK=, The dynamic disks on which the mirror volume is created. You need two dynamic disks to create a mirror volume. An amount of space equal to the size specified in SIZE= is allocated on each disk. ALIGN= Typically used with hardware RAID Logical Unit Number (LUN) arrays to improve performance. Aligns all volume extents to the closest alignment boundary. The extent offsets will be a multiple of N. NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. After you create the volume, the focus automatically shifts to the new volume.Example: CREATE VOLUME MIRROR SIZE=1000 DISK=1,2
0x40002F53创建虚拟磁盘文件。当前仅支持 VHD 和 VHDX 格式的文件, 它们是通过虚拟磁盘文件的 文件扩展名(.vhd 和 .vhdx)指定的。语法: CREATE VDISK FILE= MAXIMUM= [TYPE={FIXED|EXPANDABLE}] [SD=] [PARENT=] [SOURCE=] [NOERR] FILE= 指定虚拟磁盘文件的完整路径和文件名。 该文件可以位于网络共享上。 MAXIMUM= 虚拟磁盘公开的最大空间量, 以兆字节(MB)为单位。 TYPE={FIXED|EXPANDABLE} FIXED 指定固定大小的虚拟磁盘文件。EXPANDABLE 指定重新调整大小以适应所分配数据的 虚拟磁盘文件。默认值为 FIXED。 [SD=] 指定安全描述符定义语言(SDDL)格式 的安全描述符。默认情况下, 安全描述符是从父目录中获取的。 SDDL 字符串可能比较复杂,但很灵活。 其最简单的格式是保护访问的安全描述符,称为自定义访问控制列表(DACL)。 其格式为: D:()()...() 常用的 DACL_FLAGS 为: \"P\" - DACL 不应被来自父容器的 任何 ACL 所覆盖(保护)。 VHD 或 VHDX 文件的容器就是 其目录。 \"AI\"- DACL 应该从父容器自动 继承。 STRING_ACE 的格式为 ;;;;; 常用的 ACE_TYPE 为: \"A\" - 允许访问。 \"D\" - 拒绝访问。 常用的 RIGHTS 为: \"GA\" - 所有访问权限。 \"GR\" - 读取访问权限。 \"GW' - 写入访问权限。 常用的 ACCOUNT_ID 为: \"BA\" - 内置管理员 \"AU\" - 通过身份验证的用户。 \"CO\" - 创建者所有者。 \"WD\" - 任何人。 将所有这些放在一起,例如, D:P:(A;;GR;;;AU) 为所有通过身份验证的用户授予读取访问权限。 同样, D:P:(A;;GA;;;WD) 为任何人授予完全访问权限。 可以在 Microsoft 的 MSDN 网站上 找到有关 SDDL 的详细信息。 [PARENT=] 用于创建差异磁盘的现有父虚拟磁盘文件的路径。 对于 PARENT 参数,不应指定 MAXIMUM, 因为差异磁盘从其父目录获取大小。 而且,也不应指定 TYPE, 因为只能创建 EXPANDABLE 差异磁盘。 [SOURCE=] 用于预填充新虚拟磁盘文件的现有虚拟磁盘文件的路径。 当指定 SOURCE 时, 输入虚拟磁盘文件中的数据 将从输入虚拟磁盘文件逐块复制到创建的 虚拟磁盘文件。 但不建立父子关系。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出 并返回错误代码。示例: CREATE VDISK FILE=\"c:\\test\\test.vhd\" MAXIMUM=1000 CREATE VDISK FILE=\"c:\\test\\child.vhdx\" PARENT=\"c:\\test\\test.vhdx\" CREATE VDISK FILE=\"c:\\test\\test.vhd\" MAXIMUM=1000 SD=\"D:P(A;;GA;;;WD)\" CREATE VDISK FILE=\"c:\\test\
ew.vhdx\" SOURCE=\"c:\\test\\test.vhd\"
Creates a virtual disk file. Currently only VHD and VHDX format files are supported and are specified through the file extensions (.vhd and .vhdx) of the virtual disk file.Syntax: CREATE VDISK FILE= MAXIMUM= [TYPE={FIXED|EXPANDABLE}] [SD=] [PARENT=] [SOURCE=] [NOERR] FILE= Specifies the complete path and filename of the virtual disk file. The file may be on a network share. MAXIMUM= The maximum amount of space exposed by the virtual disk, in megabytes (MB). TYPE={FIXED|EXPANDABLE} FIXED specifies a fixed size virtual disk file. EXPANDABLE specifies a virtual disk file that resizes to accommodate the allocated data. The default is FIXED. [SD=] Specifies a security descriptor in the security descriptor definition language (SDDL) format. By default the security descriptor is taken from the parent directory. SDDL strings can be complex but flexible. In its simplest form, a security descriptor that protects access, is known as a discretionary access control list (DACL). It is of the form: D:()()...() Common DACL_FLAGS are: \"P\" - The DACL should not be overiden (protected) by any ACLs from parent containers. The container for a VHD or VHDX file is its directory. \"AI\"- The DACL should auto-inherit from the parent container. STRING_ACEs are of the form ;;;;; Common ACE_TYPEs are: \"A\" - Allow access. \"D\" - Deny access. Common RIGHTS are: \"GA\" - All access. \"GR\" - Read access. \"GW' - Write access. Common ACCOUNT_IDs are: \"BA\" - Built in administrators \"AU\" - Authenticated users. \"CO\" - Creator owner. \"WD\" - Everyone. Putting all this together, for example, D:P:(A;;GR;;;AU) gives read-access to all authenticated users. Similarly, D:P:(A;;GA;;;WD) Gives everyone full access. Further information on the SDDL can be found on Microsoft's MSDN website. [PARENT=] Path to an existing parent virtual disk file to create a differencing disk. With the PARENT parameter, MAXIMUM should not be specified because the differencing disk gets the size from its parent. Also, TYPE should not be specified since only EXPANDABLE differencing disks can be created. [SOURCE=] Path to an existing virtual disk file to be used to pre-populate the new virtual disk file. When SOURCE is specified, data from the input virtual disk file is copied block for block from the input virtual disk file to the created virtual disk file. There is no parent-child relationship established however. NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code.Example: CREATE VDISK FILE=\"c:\\test\\test.vhd\" MAXIMUM=1000 CREATE VDISK FILE=\"c:\\test\\child.vhdx\" PARENT=\"c:\\test\\test.vhdx\" CREATE VDISK FILE=\"c:\\test\\test.vhd\" MAXIMUM=1000 SD=\"D:P(A;;GA;;;WD)\" CREATE VDISK FILE=\"c:\\test\
ew.vhdx\" SOURCE=\"c:\\test\\test.vhd\"
0x40002F54按文件名选择指定的虚拟磁盘,并将焦点移动到该磁盘。语法: SELECT VDISK FILE= [NOERR] FILE= 指定现有虚拟磁盘文件的完整路径 和文件名。 NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出 并返回错误代码。示例: SELECT VDISK FILE=\"c:\\test\\test.vhd\" SELECT VDISK FILE=\"c:\\test\\test.vhdx\" NOERR Selects the specified virtual disk by filename and shifts the focus to it.Syntax: SELECT VDISK FILE= [NOERR] FILE= Specifies the complete path and filename of an existing virtual disk file. NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code.Example: SELECT VDISK FILE=\"c:\\test\\test.vhd\" SELECT VDISK FILE=\"c:\\test\\test.vhdx\" NOERR
0x40002F55连接指定的虚拟磁盘。语法: ATTACH VDISK [NOERR] [READONLY] { [SD=] | [USEFILESD] } NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出并返回错误代码。 READONLY 以只读方式连接虚拟磁盘。任何写入操作 都将返回输入/输出设备错误。 SD= 以安全描述符定义语言(SDDL)格式指定安全描述符。 默认情况下,安全描述符号允许访问任何物理磁盘 等内容。有关 SDDL 的详细信息, 请参阅 CREATE VDISK 命令。 USEFILESD 指定应该在虚拟磁盘上使用虚拟文件自身上的 安全描述符号。如果不指定,则磁盘将没有显式 安全描述符,除非使用 SD=(SDDL string)指定。 必须选择虚拟磁盘才能成功完成此操作。示例: ATTACH VDISK ATTACH VDISK READONLY ATTACH VDISK USEFILESD Attaches the specified virtual disk.Syntax: ATTACH VDISK [NOERR] [READONLY] { [SD=] | [USEFILESD] } NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. READONLY Attaches the virtual disk as read-only. Any write operation will return an input/output device error. SD= Specifies a security descriptor in the security descriptor definition language (SDDL) format. By default the security descriptor allows access like any physical disk. For more information on the SDDL please see the CREATE VDISK command. USEFILESD Specifies that the security descriptor on the virtual file itself should be used on the virtual disk. If not specified, the disk will not have an explicit security descriptor unless specified with SD=(SDDL string). A virtual disk must be selected for this operation to succeed.Example: ATTACH VDISK ATTACH VDISK READONLY ATTACH VDISK USEFILESD
0x40002F56断开指定的虚拟磁盘。语法: DETACH VDISK [NOERR] NOERR 仅用于脚本。遇到错误时,DiskPart 会继续处理命令,如同没有出现错误一样。 如果不使用 NOERR 参数,错误会导致 DiskPart 退出 并返回错误代码。 必须选择虚拟磁盘才能成功完成此操作。示例: DETACH VDISK Detach the specified virtual disk.Syntax: DETACH VDISK [NOERR] NOERR For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without the NOERR parameter, an error causes DiskPart to exit with an error code. A virtual disk must be selected for this operation to succeed.Example: DETACH VDISK
0x40002F57显示所选虚拟磁盘的属性。语法: DETAIL VDISK 必须选择虚拟磁盘才能成功完成此操作。示例: DETAIL VDISK Displays the properties of the selected virtual disk.Syntax: DETAIL VDISK A virtual disk must be selected for this operation to succeed.Example: DETAIL VDISK
0x40002F58显示虚拟磁盘列表。语法: LIST VDISK 显示虚拟磁盘列表及其信息。在连接 磁盘之前,磁盘类型显示为未知。 标有星号(*)的磁盘具有焦点。示例: LIST VDISK Displays a list of virtual disks.Syntax: LIST VDISK Displays a list of virtual disks and information about them. The disk type is shown as Unknown until the disk is attached. The disk marked with an asterisk (*) has focus.Example: LIST VDISK
0x40002F59压缩虚拟磁盘文件以减少文件的物理大小。 只能对已分离的 EXPANDABLE 虚拟磁盘或以只读 方式连接的 EXPANDABLE 虚拟磁盘执行压缩操作。语法: COMPACT VDISK 必须选择虚拟磁盘才能成功完成此操作。示例: COMPACT VDISK Compacts the virtual disk file to reduce the physical size of the file. Compact operation can be performed on a detached EXPANDABLE virtual disk or an EXPANDABLE virtual disk that is attached read only.Syntax: COMPACT VDISK A virtual disk must be selected for this operation to succeed.Example: COMPACT VDISK
0x40002F5A将子磁盘与其父磁盘合并。语法: MERGE VDISK DEPTH= DEPTH= 指示要一起合并的父磁盘数。例如, MERGE=1 指示要合并一个级别的 差异链。 必须选择虚拟磁盘才能成功完成此操作。示例: MERGE VDISK DEPTH=1 在此示例中,将子虚拟磁盘与其父磁盘合并在一起: CREATE VDISK FILE=\"c:\\vhd2.vhd\" parent=\"c:\\vhd1.vhd\" MERGE VDISK DEPTH=1 Merges a child disk with its parents.Syntax: MERGE VDISK DEPTH= DEPTH= Indicates the number of parents to merge together. For example, MERGE=1 indicates one level of the differencing chain should be merged. A virtual disk must be selected for this operation to succeed. Example: MERGE VDISK DEPTH=1 In this example a child virtual disk is merged with its parent: CREATE VDISK FILE=\"c:\\vhd2.vhd\" parent=\"c:\\vhd1.vhd\" MERGE VDISK DEPTH=1
0x40002F5B扩展虚拟磁盘上可用的最大大小。语法: EXPAND VDISK MAXIMUM= MAXIMUM= 指示磁盘的新虚拟大小,单位为兆字节(MB)。 必须选择虚拟磁盘才能成功完成此操作。 只能扩展已断开连接的磁盘。示例: EXPAND VDISK MAXIMUM=20000 Expands the maximum size available on a virtual disk.Syntax: EXPAND VDISK MAXIMUM= MAXIMUM= Indicates the new virtual size of the disk in megabytes (MB). A virtual disk must be selected for this operation to succeed. Only detached disks can be expanded. Example: EXPAND VDISK MAXIMUM=20000
0x40002F5E磁盘已取消初始化,正在将其初始化到 GPT。 Disk is uninitialized, initializing it to GPT.
0xC0002AF9为此命令指定的参数无效。有关此命令类型的详细信息,请使用 HELP %1!s! 命令 The arguments specified for this command are not valid.For more information on the command type: HELP %1!s!
0xC0002F5C未指定要创建的虚拟磁盘文件。请使用 FILE= 参数指定文件。 There is no virtual disk file specified to create.Please specify a file using the FILE= parameter.
0xC0002F5D未指定要选择的虚拟磁盘文件。请使用 FILE= 参数指定文件。 There is no virtual disk file specified to select.Please specify a file using the FILE= parameter.

EXIF

File Name:diskpart.exe.mui
Directory:%WINDIR%\WinSxS\amd64_microsoft-windows-diskpart.resources_31bf3856ad364e35_10.0.15063.0_zh-cn_4131dee95db7c859\
File Size:118 kB
File Permissions:rw-rw-rw-
File Type:Win32 DLL
File Type Extension:dll
MIME Type:application/octet-stream
Machine Type:Intel 386 or later, and compatibles
Time Stamp:0000:00:00 00:00:00
PE Type:PE32
Linker Version:14.10
Code Size:0
Initialized Data Size:119808
Uninitialized Data Size:0
Entry Point:0x0000
OS Version:10.0
Image Version:10.0
Subsystem Version:6.0
Subsystem:Windows GUI
File Version Number:10.0.15063.0
Product Version Number:10.0.15063.0
File Flags Mask:0x003f
File Flags:(none)
File OS:Windows NT 32-bit
Object File Type:Dynamic link library
File Subtype:0
Language Code:Chinese (Simplified)
Character Set:Unicode
Company Name:Microsoft Corporation
File Description:DiskPart
File Version:10.0.15063.0 (WinBuild.160101.0800)
Internal Name:diskpart.exe
Legal Copyright:© Microsoft Corporation. All rights reserved.
Original File Name:diskpart.exe.mui
Product Name:Microsoft® Windows® Operating System
Product Version:10.0.15063.0
Directory:%WINDIR%\WinSxS\x86_microsoft-windows-diskpart.resources_31bf3856ad364e35_10.0.15063.0_zh-cn_e5134365a55a5723\

What is diskpart.exe.mui?

diskpart.exe.mui is Multilingual User Interface resource file that contain Chinese (Simplified) language for file diskpart.exe (DiskPart).

File version info

File Description:DiskPart
File Version:10.0.15063.0 (WinBuild.160101.0800)
Company Name:Microsoft Corporation
Internal Name:diskpart.exe
Legal Copyright:© Microsoft Corporation. All rights reserved.
Original Filename:diskpart.exe.mui
Product Name:Microsoft® Windows® Operating System
Product Version:10.0.15063.0
Translation:0x804, 1200