How To Format SD Card or Pen Drive In Windows 10 Terminal

Formating a pen drive or sd card is much easier in Windows as it allows to perform this operation as part of File Explorer itself. In certain cases, performing this operation in the terminal would be much convenient than performing it with the GUI. In this tip, let see how to format an external storage device in the command-line with Windows 10.

If there are more partitions in the disk, deleting all partitions and formatting it would be a time-consuming activity. DiskPart in Windows Operating System is a command-line utility that helps us to easily wipe out a storage device.

Steps To Format Storage Drive

Execute the below commands in the terminal of Windows OS

# To start the diskpart utility
$ diskpart

# View the list of storage devices attached to the PC 
$ list disk

# Select the disk by its index number
$ select Disk 1

# Format the drive
$ clean
$ create partition primary
$ format fs=fat32 label=mi-cam
Other accepted file system options are “ntfs”, “extfat”

diskpart

Leave a comment