Win CMD Disk notes

Windows Command line notes about disk

http://msdn.microsoft.com/en-us/library/windows/desktop/aa363785%28v=vs…

Disk types: basic and dynamic

Partition style: MBT or GPT
MBT: 4 primary or 3 primary and 1 extended with unlimited logical
GPT: 128 primary

Volumes: simple, spanned, stripped, mirror, raid5

Create and bring online a basic disk with primary partition simple volume and ntfs filesystem:

diskpart
select disk n
attributes disk clear readonly
online disk
convert basic
create partition
format fs=ntfs quick
assign letter=e

Create and bring online a dynamic disk with simple volume and ntfs filesystem:
diskpart
select disk n
attributes disk clear readonly
online disk
convert dynamic
create volume simple
format fs=ntfs quick
assign letter=e