Diskpart> list Disk
Disk # # # state size available Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online GB 0 B
Disk 1 online GB (GB)
Diskpart> Select disk 1
Disk 1 is now the selected disk.
diskpart> Online Disk 1
Diskpart> help Create
Microsoft DiskPart version 6.1.7601
PARTITION-create partition.
VOLUME-Create volume.
VDISK-Create a virtual disk file.
Diskpart> create partition?
Microsoft DiskPart version 6.1.7601
EFI-Create the EFI system partition.
EXTENDED-Create an extended partition.
LOGICAL-Create a logical drive.
MSR-Creates a Microsoft reserved partition.
PRIMARY-Create the primary partition.
Diskpart> create partition primary
DiskPart encountered an error: The media is write protected.
For more information, see the System event log.
diskpart> ATTRIBUTES DISK CLEAR READONLY
Disk properties were successfully cleared.
Diskpart> create partition primary
DiskPart succeeded in creating the specified partition.
Diskpart>
Hard drive cannot be added to resolve