Code 3 means that diskpart is unable to open the specified file.Code 2 means that the parameters you specified for a command are incorrect.
#FORMAT DISK WINDOWS 10 COMMAND LINE OFFLINE#
online can be used to bring a disk or a volume online that was previously offline.import can be used to import disks from a foreigh disk group.extend disk – use this command to extend the current volume.delete partition – use this command to delete the current active partition.delete disk – use this command to delete a missing dynamic disk.create volume raid – use this command to create a Raid-5 volume on a specified disk.
create volume stripe – use this to create a stripe set volume on a specified disk.break disk – use this command to break the mirror added.add disk – use this command to add a mirror to the current active volume.active – use this to set the current volume as active.remove will remove a letter or a mount point from the current active partition.delete partition will delete the current active partition.The SIZE_IN_MB is the size of the partition you want to create, in MB. create partition logical size=SIZE_IN_MB – use this command to create a new logical partition.create partition extended size=SIZE_IN_MB – use this command to create a new extended partition.create partition primary size=SIZE_IN_MB – use this command to create a new primary partition.assign – use assign to assign a letter or a mount point to the current active partition.active – use the active command to set the focus on the current partition to be active.list volume – use list volume to get information about each volume available on the computer.list partition – use this command to get information about each partition available on a specific disk.list disk – use list disk to get summary information about the available disks on your computer.detail volume will deliver information about the current volume.detail partition will deliver information about the current partition.detail disk will deliver information about the current disk.select volume – use this command to set the focus on a specific volume.select partition – use the select partition command to set the focus on a specific partition.