How To Format Pen Drive with Dos Command?

1.Open the DOS prompt (Start >> Run >> cmd)
2.Type:

Code:  FORMAT X: /FS:FAT32 /Q /V:PenDrive

This will reformat the Pen drive, using the FAT32 file system, and label the drive PenDrive.
3. Replace X: with the actual drive letter of your Pen Drive.
4.For more help on this command, type:
FORMAT /?
at the command prompt.

Instructions

    • 1 Plug your flash drive into an empty USB port on your computer.
    • 2 Click “Start,” “All Programs,” “Accessories” and “Command Prompt” to open the DOS command prompt window.
    • 3 Type “diskpart” after the command prompt to start the Disk Partition utility. This should result in a DISKPART command prompt.
    • 4 Type each of the following commands, one at a time, after the DISKPART prompt, pressing “Enter” after each:

      list disk
      select disk #
      clean
      create partition primary
      select partition1
      active
      format FS=NTFS
      assign
      exit

    • 5 Close the command prompt window. Your USB drive is now formatted.

How can I format a pen drive using dos commands.I want to remove hidden files?

1) (skip the format, just unhide them)

Open a dos prompt (Start >> Run >> cmd) and type:
attrib -r -h -s ./s x:\*.*
This will change the attributes of all of the files on the pen drive. Readonly, hidden, andsystem attributes will be removed. Replace the X: with your pen drive’s drive letter. Now you will be able to see them in Explorer, and delete them, without formatting anything.

2) (format with DOS commands)

Open the DOS prompt (Start >> Run >> cmd)
Type:
FORMAT X: /FS:FAT32 /Q /V:PenDrive
This will reformat the Pen drive, using the FAT32 file system, and label the drive PenDrive. Replace X: with the actual drive letter of your Pen Drive. For more help on this command, type:
FORMAT /?
at the command prompt.

3) (format using Windows GUI, Explorer)

Open Explorer, go to My Computer, right click on the drive letter and select Format… from the popup menu. Pen drives are usually formatted with the FAT32 file system, but if you’re of a mind, you can also use NTFS. But keep in mind, if you use NTFS you won’t be able to take the pen drive out, without a reboot.

Advertisements

2 thoughts on “How To Format Pen Drive with Dos Command?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s