Initialize Local Disks and Attached Storage Using DiskPart in Windows 10

To start, launch the command prompt in Windows 10. The quickest way to do that is to press Windows key + X then click Command Prompt (Admin). At the command prompt, type: diskpart then hit enter. This will start the disk partitioning command line utility.

Type list disk then hit Enter. This will reveal all attached storage devices. As you can see below, both my local hard disk ( 20 GB partition) and my external storage (2 GB) are attached. In my case, the drive I want to format is the 2 GB partition.

To select the small partition, type: select disk 1 then hit Enter – this is the small 2 GB partition I want to format. If you had more storage devices connected or attached, they would be listed as disk 0, 1, 2, 3, etc.

Once the drive has been selected, type clean then hit Enter.

Type create partition primary then hit Enter

Type active then hit Enter

Type format fs=exfat label=”DRIVE LABEL HERE” quick then hit Enter This command will format and label the drive, e.g. format fs=exfat label=”Groovy”. If you are formatting a local disk, you should use NTFS in place of exFAT, or you can choose from other appropriate file systems such as FAT32.

Type exit and hit Enter again.

There are other ways you can access the DiskPart command line utility, too. When performing a new installation of Windows 10, you can use DiskPart to format and prepare storage devices. Upon arriving at the Custom/Advanced screen, press Shift + F10 to launch the command line, then type: diskpart to launch the Disk Partitioning utility.

If you are unable to boot to the Windows 10 desktop, you can also access the command prompt from the Recovery Environment.

Remember, this is not limited to just local storage or external storage; you can use it to format SD Cards too in addition to preparing your local hard disk for a fresh installation of Windows 10 during setup. As always, let us know what you think in the comments and let us know what if there any other mundane tasks you would like to try out in the command line. Comment Name * Email *

Δ  Save my name and email and send me emails as new comments are made to this post.

How to Format Local Disks  USB Storage and SD Cards Using DiskPart in Windows 10 - 30How to Format Local Disks  USB Storage and SD Cards Using DiskPart in Windows 10 - 86How to Format Local Disks  USB Storage and SD Cards Using DiskPart in Windows 10 - 81How to Format Local Disks  USB Storage and SD Cards Using DiskPart in Windows 10 - 97How to Format Local Disks  USB Storage and SD Cards Using DiskPart in Windows 10 - 18How to Format Local Disks  USB Storage and SD Cards Using DiskPart in Windows 10 - 77How to Format Local Disks  USB Storage and SD Cards Using DiskPart in Windows 10 - 51How to Format Local Disks  USB Storage and SD Cards Using DiskPart in Windows 10 - 20How to Format Local Disks  USB Storage and SD Cards Using DiskPart in Windows 10 - 70How to Format Local Disks  USB Storage and SD Cards Using DiskPart in Windows 10 - 97How to Format Local Disks  USB Storage and SD Cards Using DiskPart in Windows 10 - 76