
It may take a moment or two to perform a quick format.Īt the DISKPART> prompt, type " ASSIGN" (without quotes) and press enter. " FORMAT FS=NTFS QUICK" (without quotes) and press enter to format the USB flash drive using the NTFS file system." FORMAT FS=FAT32 QUICK" (without quotes) and press enter to format the USB flash drive using the FAT32 file system.At the DISKPART> prompt, type either one of the following commands:.This tells DiskPart to make the disk partition startable, e.g., allows an operating system to be booted from the partition. At the DISKPART> prompt, type " ACTIVE" (without quotes) and press enter.This tells DiskPart you wish to perform operations on the partition (disk volume) you just created. At the DISKPART> prompt, type " SELECT PARTITION 1" (without quotes) and press enter.This creates a primary disk partition utilizing all of the flash RAM drive's capacity. At the DISKPART> prompt, type " CREATE PARTITION PRIMARY" (without quotes) and press enter.When finished, you will have an empty USB flash drive.Īt this point, you can type " EXIT" and press enter to quit, however, if you would like to format the disk or make it bootable (for a Windows Vista or Windows 7 installation), you can do so by following these steps: It may take a few moments for the operation to run, depending upon the capacity and speed of your USB flash RAM drive. This tells DiskPart to zero-out (write 0's) across the entire disk. At the DISKPART> prompt, type " CLEAN" (without quotes) and press enter.At the DISKPART> prompt, type " SELECT DISK n" (without quotes), where n is the number of USB flash RAM drive and press enter.Your USB flash RAM drive will show up with a number like 1, 2, 3, 4 and so forth. A list of currently-mounted disk drives will be displayed. At the DISKPART> prompt, type " LIST DISK" (without quotes) and press enter.Start DiskPart (filename: DISKPART.EXE), the command line disk partitioning tool.

If you are running Microsoft Windows Vista or Windows 7, you will need to open an elevated command prompt. Open a Command Prompt (filename: CMD.EXE) in Windows.The following should erase the contents of a USB flash RAM drive:
