Follow

I can't use all the space on my USB.

Sometimes, if you've used a USB for certain low level purposes and want to use it for something else, you have to reset it.

The content of the device will be lost in the operation.

The following instructions do not work on Windows XP.
The version of Diskpart on Windows XP does not list removable disks.

Using Diskpart

You might overwrite any hard disk on the computer.
If at some point you are not sure about the disk number, stop proceeding.
  1. Make sure that the USB stick or SD card that you want to reset is unplugged.

  2. Click on the Start button, and choose All Programs ▸ Accessories ▸ Command Prompt, to open the Command Prompt,

    More help on how to start the Command Prompt

  3. Execute the diskpart command, to start Diskpart.

  4. Execute the list disk command to obtain information about each disk in the computer.

    For example:

    Diskpart> list disk
    
      Disk ###  Status      Size     Free     Dyn  Gpt
      --------  ----------  -------  -------  ---  ---
      Disk 0    Online        80 GB      0 B
    
  5. Plug the USB stick or SD card that you want to reset. Run the list disk command again.

    A new disk, which corresponds to that device, appears in the list.

    For example:

     Diskpart> list disk
    
       Disk ###  Status      Size     Free     Dyn  Gpt
       --------  ----------  -------  -------  ---  ---
       Disk 0    Online        80 GB      0 B
       Disk 1    Online         4 GB      0 B
    

    Make sure that its size corresponds to the size of the device that you want to reset. Note down the disk number assigned by Diskpart to the device.

  6. To select the device, execute the following command: select disk=number. Replacenumber by the disk number of the device that you want to reset.

  7. Execute the clean command to delete the partition table from the device.

  8. Execute the convert mbr command to create a new partition table on the device.

  9. Execute the create partition primary command to create a new primary partition on the device.

Troubleshooting

See the Diskpart documentation from Microsoft Support.

 

Source:https://tails.boum.org/doc/first_steps/reset/windows/index.en.html

0 Comments

Please sign in to leave a comment.
Powered by Zendesk