How to format Pendrive using CMD

How to Format your Pendrive using CMD

Updated on

For various purposes, you may often need to format your pen drive. Usually, this is quite a simple task. Moreover, there are various ways to proceed with it. So, you can format pendrive in a few simple steps whenever required. But, you might need some help in case you’re doing it for the first time.

Now, there are various ways in which you can format pendrive. But, using the Command prompt is one of the simplest to do that. You have come to the right place if you want to know how to format pendrive through cmd. Also, you’ll find all the information related to this matter that would help you in the long run. If your Pendrive is not formating and showing error of “The Disk is Write Protected” then you can see how to remove write Protected on Pendrive.

What does it mean to Format a Pen Drive?

You might have stored various types of files and software in your pen drive. Formatting them would remove all of them from the device. So, is formatting just another type of deleting? In case you’re wondering that, no, it isn’t. It’s different from deleting all files from the drive.

When you delete data, it doesn’t leave the device completely. Some bits of it remain in the storage drive. That isn’t favorable if you want to clear the space for a specific purpose. So, in such cases, you perform a format instead of deleting that removes all data from it without a trace. As a result, your pen drive returns to its factory state.

Formatting your Pen Drive using Command Prompt in Windows

First, you must connect the pen drive to your PC and make sure whether it’s recognized. Users often complain that their laptops don’t show any connection to the pen drive. This issue may have a wide range of causes, and you might want an urgent solution. In such cases, you must reach out to an efficient laptop repair Dubai.

Once you succeed in connecting the pen drive, you must proceed with the following steps:

Step 1. Open the Command Prompt in the System

To use the Command Prompt for formatting, you must switch to the Administrator account. Do you own the device? If not, then you must ask the owner to provide you with admin rights to proceed with this solution.

Own the device but don’t have an admin account? In that case, you can provide an administrator role to your user account. Then, open the Command Prompt with the search box or keyboard shortcuts, whichever you prefer. Choose the admin role to run it when it shows the option.

Step 2. Use the Diskpart tool

Various tools come pre-installed in your Windows system for performing various tasks. To format pendrive, you have to use the Diskpart tool. It is used for partitioning as well as formatting hard drives, both internal and external.

write-diskpart-command
diskpart command

Moreover, it works better than many other tools for this purpose. To launch it, you need to enter the “Diskpart” in the Command Prompt. Now, you’re ready to proceed with the actual formatting process.

Step 3. Bring up connected drives

After launching Diskpart, you need to bring up a list of all drives detected on your device. For that, you have to enter “List Disk” in the field. It will list all the drives as Disk 0, Disk 1, and so on.

list disk command
list disk command

So, you need to find your pen drive among them. Now, how do you do that? The storage size given along with the discs can help you identify the pen drive among them.

Step 4. Select the pen drive

Once you’ve found the pen drive, you need to select it for formatting. For that, enter “select disk” and add the disk number beside it. Let’s suppose your pen drive is listed as Disk 1. In that case, you need to enter “select disk 1” in the field.

select disk
Select Disk

Step 5. Clear the data

After you select the right disk, you have to clear all its data. So, you must not continue with this if you don’t want to lose the files. To proceed with this step, you need to enter “Clean” in the field. This will delete all forms of data from it.

Step 6. Make a partition

The next step is to form a partition in your pen drive. For that, you simply have to enter “Create partition primary” in the prompt.

Step 7. Choose the partition to format

Now, you need to choose one of the partitions to format Pendrive. For that, enter “select partition” along with the partition number. So, this works the same way as selecting the disk. After choosing the partition, you need to proceed with formatting it.

clean, select and create partition, format Pendrive
Clean and Create Partition

Step 8. Format to a file system if your choice

Before you proceed with the format, you must decide on the file system. There are various options you can choose from. Moreover, each of these has its advantages and drawbacks.

Already have a preferred file system? Then, add it to the command “format fs=” and enter it. For example, if you want to format it to fat32, use “format fs=fat 32”.

format fs command, format Pendrive
Select format type

Step 9. Assign a name to the drive

This is the last step of the formatting process. After the previous step, you need to assign a certain letter to the pen drive; suppose you want to name it K. In that case, you need to enter the command “assign letter k” in the field.

Once Diskpart completes this step, you’ve successfully formatted your pen drive. So, you can exit the Command Prompt now.

Also Read:- How to Make Bootable USB

Which File System should you use for Formatting?

The file system you format Pendrive into, is an important consideration to make. If you haven’t decided and are wondering, none of them is suitable for all cases. Are you going to use the pen drive with Windows only? In that case, you must go for NTFS; otherwise, choose FAT32. The latter system lets you use the pen drive with other major systems like Linux and Mac. Moreover, NTFS isn’t suitable for pen drives but only for much larger storage devices.

But, FAT32 has limitations on the file size, and you can store data in them. So, they pose a disadvantage if you want to store large files in the pen drive. How do you deal with this drawback in such a situation? You can opt for exFAT, which combines the benefits of the systems mentioned above.

Alternative Methods for Formatting PenDrives in Windows 10

Not all users may find the Command Prompt method simple. But, you can do it without any issue if you follow the instructions mentioned above. If you’re looking for other methods for formatting your pen drive, try out the following:

Method 1. Using the File Explorer

If you’re looking for an easier method, you should find this one suitable. Most users might prefer performing the format through File Explorer than other methods. After all, it may take less time and is simpler than other ways. So, if you don’t find the Command Prompt viable, proceed with the following steps.

Find your pen drive in the File Explorer

Connect your USB drive to your PC and open the File Explorer. Can’t see the external drive listed there? In that case, make sure that you’ve connected it properly to your PC. Right-click your pen drive when you see it and select the Format option.

Select the file system file you prefer

After you opt for format pendrive, you’ll get the option to choose the file system. If you have a preference, select it from the options. In case you’re not sure which system to use, decide before you proceed. Also, make sure the one you choose is best suited for your purpose. The options you get are FAT, FAT32 (default), NTFS, and exFAT. 

Select the optimal allocation size

Once you’re done with the file system, you need to allocate a proper space to it. Now, you can’t set the figure by yourself. Instead, you need to choose from among the various size options on the screen.

Name the pen drive

After you select the suitable size, you must set a name for the pen drive.

Should you enable Quick Format?

Wondering what the Quick Format option does? While enabled, it keeps certain important files on the pen drive after formatting it. So, you can retrieve them later with recovery software. If you don’t have any important files in the drive, you can uncheck the Quick Format.

Start the format

Once you’ve set all the suitable options, you’re ready to proceed with the formatting. Click on the Start button to begin the process and wait until it ends. Depending on the pen drive’s size, this may take a while to complete.

After the pen drive is formatted, check if it’s working properly. If it doesn’t, you must consult a professional to find and fix the issue.

Method 2. From the Disk Management

The File Explorer is a viable option for format Pendrive. But, you may face various issues while using it. Many users report that File Explorer doesn’t detect their pen drives. Are you facing this problem as well? In that case, you must try formatting it through Disk Management. For that, you must go to the Device Manager in the Control Panel.

Open your pen drive in Disk Management

You can find the Disk Management page on your device using the search bar. You’ll find all the drives connected to your device listed in there. If you didn’t find your pen drive in the File Explorer, you might find it here. So, select your pen drive to see all the partitions in it.

Choose the partition to format

Do you want to create a new partition in the drive? In that case, right-click the space listed there and opt for partitioning it. If you’re going to use an existing partition, you can click on any of the ones listed.

Do you want to format the entire space in your pen drive? You can do that by clicking each partition and opting to remove it. So, this method lets you proceed any way you want regarding this matter.

After you’re done with this step, it’s time to decide on the allocation of space.

Allocate the required space for formatting

Have you created a new partition? Sometimes, you might also find an unallocated space in your drive. In both these cases, you can choose to allocate any volume you want to. Unlike the previous method, you don’t need to choose between a given set of spaces. So, this method is more flexible than others in that regard. Enter any amount in the field below the minimum and maximum disk spaces.

Assign a letter and choose a file system

Like the previous methods, you need to name your pen drive with a letter. The next step is selecting a file system. Not sure about which one you must use? You must go for the one that serves your purpose the most. For that, you might want to know about various file systems first.

After optimising these settings, you need to set a few more — these include the volume label and the size of the allocation unit. Also, you can choose to enable or disable the quick format as well.

Do you have any files in the pen drive that you may need to retrieve later? In that case, you must enable the quick format. Otherwise, it’s not of any use to you, so you must disable it.

Proceed to format

Once you’re done with the above-mentioned steps, click on “Next” to go to the next step. You’ll see the options you choose, in the form of a summarised message, on the screen. Go through them to make sure whether you chose the right ones. If needed, you can also go back to change an option. Once you’re sure, click on “Finish” at the bottom to start format Pendrive.

Why must you format your Pen Drive?

You might need to use your USB drives with various devices. For that, it must have the right software which is compatible with the computer’s system. Otherwise, you may face a wide range of issues when you connect the pen drive. So, formatting is one of the best ways to improve its performance. Moreover, it can solve the common issue that your computer faces in detecting the drive. Apart from that, formatting is also necessary for creating bootable media for your PC.

Article by

Divy Patel