<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Diskpart</id>
	<title>Diskpart - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Diskpart"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Diskpart&amp;action=history"/>
	<updated>2026-05-07T02:43:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=Diskpart&amp;diff=5182&amp;oldid=prev</id>
		<title>Kenneth: Created page with &quot;== Commands ==  * DiskPart Command-Line Options (Windows Embedded Standard 7 Service Pack 1) - http://msdn.microsoft.com/en-us/library/ff794606%28v=winembedded.60%29.aspx * DI...&quot;</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Diskpart&amp;diff=5182&amp;oldid=prev"/>
		<updated>2019-05-17T22:17:27Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Commands ==  * DiskPart Command-Line Options (Windows Embedded Standard 7 Service Pack 1) - http://msdn.microsoft.com/en-us/library/ff794606%28v=winembedded.60%29.aspx * DI...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Commands ==&lt;br /&gt;
&lt;br /&gt;
* DiskPart Command-Line Options (Windows Embedded Standard 7 Service Pack 1) - http://msdn.microsoft.com/en-us/library/ff794606%28v=winembedded.60%29.aspx&lt;br /&gt;
* DISKPART - http://www.tekweb.dk/manuals/command/commands/D/DISKPART.HTM&lt;br /&gt;
&lt;br /&gt;
list:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DISK        - Display a list of disks. For example, LIST DISK.&lt;br /&gt;
PARTITION   - Display a list of partitions on the selected disk.&lt;br /&gt;
              For example, LIST PARTITION.&lt;br /&gt;
VOLUME      - Display a list of volumes. For example, LIST VOLUME.&lt;br /&gt;
VDISK       - Displays a list of virtual disks.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
help:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ACTIVE      - Mark the selected partition as active.&lt;br /&gt;
ADD         - Add a mirror to a simple volume.&lt;br /&gt;
ASSIGN      - Assign a drive letter or mount point to the selected volume.&lt;br /&gt;
ATTRIBUTES  - Manipulate volume or disk attributes.&lt;br /&gt;
ATTACH      - Attaches a virtual disk file.&lt;br /&gt;
AUTOMOUNT   - Enable and disable automatic mounting of basic volumes.&lt;br /&gt;
BREAK       - Break a mirror set.&lt;br /&gt;
CLEAN       - Clear the configuration information, or all information, off the&lt;br /&gt;
              disk.&lt;br /&gt;
COMPACT     - Attempts to reduce the physical size of the file.&lt;br /&gt;
CONVERT     - Convert between different disk formats.&lt;br /&gt;
CREATE      - Create a volume, partition or virtual disk.&lt;br /&gt;
DELETE      - Delete an object.&lt;br /&gt;
DETAIL      - Provide details about an object.&lt;br /&gt;
DETACH      - Detaches a virtual disk file.&lt;br /&gt;
EXIT        - Exit DiskPart.&lt;br /&gt;
EXTEND      - Extend a volume.&lt;br /&gt;
EXPAND      - Expands the maximum size available on a virtual disk.&lt;br /&gt;
FILESYSTEMS - Display current and supported file systems on the volume.&lt;br /&gt;
FORMAT      - Format the volume or partition.&lt;br /&gt;
GPT         - Assign attributes to the selected GPT partition.&lt;br /&gt;
HELP        - Display a list of commands.&lt;br /&gt;
IMPORT      - Import a disk group.&lt;br /&gt;
INACTIVE    - Mark the selected partition as inactive.&lt;br /&gt;
LIST        - Display a list of objects.&lt;br /&gt;
MERGE       - Merges a child disk with its parents.&lt;br /&gt;
ONLINE      - Online an object that is currently marked as offline.&lt;br /&gt;
OFFLINE     - Offline an object that is currently marked as online.&lt;br /&gt;
RECOVER     - Refreshes the state of all disks in the selected pack.&lt;br /&gt;
              Attempts recovery on disks in the invalid pack, and&lt;br /&gt;
              resynchronizes mirrored volumes and RAID5 volumes&lt;br /&gt;
              that have stale plex or parity data.&lt;br /&gt;
REM         - Does nothing. This is used to comment scripts.&lt;br /&gt;
REMOVE      - Remove a drive letter or mount point assignment.&lt;br /&gt;
REPAIR      - Repair a RAID-5 volume with a failed member.&lt;br /&gt;
RESCAN      - Rescan the computer looking for disks and volumes.&lt;br /&gt;
RETAIN      - Place a retained partition under a simple volume.&lt;br /&gt;
SAN         - Display or set the SAN policy for the currently booted OS.&lt;br /&gt;
SELECT      - Shift the focus to an object.&lt;br /&gt;
SETID       - Change the partition type.&lt;br /&gt;
SHRINK      - Reduce the size of the selected volume.&lt;br /&gt;
UNIQUEID    - Displays or sets the GUID partition table (GPT) identifier or&lt;br /&gt;
              master boot record (MBR) signature of a disk.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create standard partition ==&lt;br /&gt;
&lt;br /&gt;
 diskpart&lt;br /&gt;
 list disk&lt;br /&gt;
 rem  # DO NOT SELECT DISK 0&lt;br /&gt;
 select disk 1&lt;br /&gt;
 clean&lt;br /&gt;
 create partition primary&lt;br /&gt;
 list part&lt;br /&gt;
 format fs=fat32 label=&amp;quot;Data&amp;quot; quick&lt;br /&gt;
 rem # for full disk - format fs fat32 quick&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
 DISKPART&lt;br /&gt;
 LIST DISK&lt;br /&gt;
 SELECT DISK 1&lt;br /&gt;
 CLEAN&lt;br /&gt;
 CREATE PARTITION PRIMARY&lt;br /&gt;
 SELECT PARTITION 1&lt;br /&gt;
 ACTIVE&lt;br /&gt;
 FORMAT /Q FS=NTFS&lt;br /&gt;
 ASSIGN&lt;br /&gt;
 EXIT&lt;br /&gt;
&lt;br /&gt;
== Create a GUID Partition Table Partition on a Raw Disk ==&lt;br /&gt;
&lt;br /&gt;
To create a GPT partition on a raw disk by using the Diskpart utility:&lt;br /&gt;
# At a command prompt, type: diskpart to start the Diskpart utility: &amp;quot;Diskpart version 0.0&amp;quot; is displayed as well as a Diskpart prompt.&lt;br /&gt;
# At the prompt, type: list to list the mounted hard drive volumes.&lt;br /&gt;
# At the prompt, type: select x (where x is the number of the hard disk drive that you want to convert to GPT). The following information is displayed: &amp;quot;Selected Disk = x&amp;quot;.&lt;br /&gt;
# At the prompt, type: new gpt to add the GPT information into the non-volatile RAM (NVRAM).&lt;br /&gt;
#* NOTE: This step does not create the GPT partition information.&lt;br /&gt;
# At the prompt, type: create name=&amp;quot;efi system partition&amp;quot; type=efisys Size=102 to create the Extensible Firmware Interface (EFI) partition.&lt;br /&gt;
#* NOTE: The name can be anything you want, but if the name has spaces in it, the name must have quotes around it. The type must equal either Efisys, Msres, or Msdata. If a size is not specified, the partition uses the remaining unpartitioned space. To install Windows XP, the Msdata partition must contain at least 2 gigabytes (GB) of free space.&lt;br /&gt;
# At the prompt, type: create name=&amp;quot;microsoft reserved&amp;quot; type=msres Size=31 to create the MSR partition.&lt;br /&gt;
# At the prompt, type: create name=&amp;quot;basic data&amp;quot; type=msdata to create a partition for the remaining unpartitioned space.&lt;br /&gt;
# At the prompt, type: inspect to display the partition information.&lt;br /&gt;
# At the prompt, type: exit to quit the Diskpart utility.&lt;br /&gt;
&lt;br /&gt;
 diskpart&lt;br /&gt;
 list disk&lt;br /&gt;
 REM  # DO NOT SELECT DISK 0:&lt;br /&gt;
 select disk 1&lt;br /&gt;
 clean&lt;br /&gt;
 convert gpt&lt;br /&gt;
 create partition primary&lt;br /&gt;
 list part&lt;br /&gt;
 select partition 1&lt;br /&gt;
 format fs=fat32 label=&amp;quot;EFI_1&amp;quot; quick&lt;br /&gt;
 REM # note: not required, but you can specify drive letter: &amp;quot;assign letter=s&amp;quot;&lt;br /&gt;
 assign&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
You can create an official EFI partition, but this does not work on a USB drive:&lt;br /&gt;
 create partition efi size=100&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* Diskpart Create EFI Partition - TechCenter Media Gallery - TechCenter Extras - Dell Community - http://en.community.dell.com/techcenter/extras/m/mediagallery/19972600.aspx&lt;br /&gt;
* HOW TO: Use the Diskpart.efi Utility to Create a GUID Partition Table Partition on a Raw Disk in Windows - http://support.microsoft.com/kb/297800&lt;br /&gt;
* Creating Primary Partitions - http://windowscommand.uw.hu/wincmd0048.html&lt;br /&gt;
&lt;br /&gt;
== keywords ==&lt;br /&gt;
&lt;br /&gt;
[[Category:Microsoft]]&lt;br /&gt;
[[Category:Windows]]&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>