DISKPART

diskpart is used to manage disk partitions, such as creating, deleting, formatting, and resizing partitions on a computer's hard drive or other storage devices

c:\sa> diskpart
DISKPART> list disk
DISKPART> select disk <#>
DISKPART> clean
 * wipe the entire disk, removing any existing partitions and data.
DISKPART> create partition primary
 * creates a new primary partition on the selected disk
DISKPART> list partition
DISKPART> select partition <#>
DISKPART> active
 * marks the selected partition as the bootable one.
DISKPART> format fs=fat32 quick
 * remove the quick option if FULL ZERO is required
DISKPART> assign letter=F
 * assigns a drive letter for access via Windows Explorer or the command line
DISKPART> exit
c:\sa> xcopy X:\* F:\ /s /e /f
 * Drop the contents of the ISO file in the newly partitioned drive
    - x: represents the mounted ISO drive
    - /f represents the new partition

Last updated