text stringlengths 0 4.23k |
|---|
Remarks |
You must add at least one volume with the add volume command before you can use the create command. |
After you run the create command, you can use the exec command to run a duplication script for backup from the shadow copy. |
You can use the begin backup command to specify a full backup, rather than a copy backup. |
Examples |
To create an EFI partition of 1000 megabytes on the selected disk, type: |
create partition efi size=1000 |
create partition extended |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
Creates an extended partition on the disk with focus. After the partition has been created, the focus automatically shifts to the new partition. |
Important |
You can use this command only on Master Boot Record (MBR) disks. You must use the select disk command to select a basic MBR disk and shift the focus to it. |
You must create an extended partition before you can create logical drives. Only one extended partition can be created per disk. This command fails if you attempt to create an extended partition within another extended partition. |
Syntax |
create partition extended [size=<n>] [offset=<n>] [align=<n>] [noerr] |
Parameters |
Parameter |
Description |
size=<n> |
Specifies 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=<n> |
Specifies 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 free space on the disk that is large enough to hold the new partition. |
align=<n> |
Aligns all partition extents to the closest alignment boundary. Typically used with hardware RAID Logical Unit Number (LUN) arrays to improve performance. <n> is the number of kilobytes (KB) from the beginning of the disk to the closest alignment boundary. |
noerr |
For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without this parameter, an error causes DiskPart to exit with an error code. |
<n> |
<n> |
<n> |
<n> |
Examples |
To create an extended partition of 1000 megabytes in size, type: |
create partition extended size=1000 |
create partition logical |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
Creates a logical partition on an existing extended partition. After the partition has been created, the focus automatically shifts to the new partition. |
Important |
You can use this command only on Master Boot Record (MBR) disks. You must use the select disk command to select a basic MBR disk and shift the focus to it. |
You must create an extended partition before you can create logical drives. |
Syntax |
create partition logical [size=<n>] [offset=<n>] [align=<n>] [noerr] |
Parameters |
Parameter |
Description |
size=<n> |
Specifies the size of the logical partition in megabytes (MB), which 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=<n> |
Specifies the offset in kilobytes (KB), at which the partition is created. The offset rounds up to completely fill whatever cylinder size is used. If no offset is given, then the partition is placed in the first disk extent that is large enough to hold it. The partition is at least as long in bytes as the number specified by size=<n>. If you specify a size for the logical partition, it must be smaller than the extended partition. |
align=<n> |
Aligns all volume or partition extents to the closest alignment boundary. Typically used with hardware RAID Logical Unit Number (LUN) arrays to improve performance. <n> is the number of kilobytes (KB) from the beginning of the disk to the closest alignment boundary. |
noerr |
For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without this parameter, an error causes DiskPart to exit with an error code. |
<n> |
<n> |
<n> |
<n> |
<n> |
Remarks |
Examples |
To create a logical partition of 1000 megabytes in size, in the extended partition of the selected disk, type: |
create partition logical size=1000 |
create partition msr |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
Creates a Microsoft Reserved (MSR) partition on a GUID partition table (gpt) disk. A Microsoft Reserved partition is required on every gpt disk. The size of this partition depends on the total size of the gpt disk. The size of the gpt disk must be at least 32 MB to create a Microsoft Reserved partition. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.