Skip to content

Instantly share code, notes, and snippets.

@woodRock
Created July 23, 2019 04:01
Show Gist options
  • Save woodRock/06cecb12aded671facb9036ba8e72916 to your computer and use it in GitHub Desktop.
Save woodRock/06cecb12aded671facb9036ba8e72916 to your computer and use it in GitHub Desktop.
Clean a usb with a Linux ISO flashed on it using diskpart on Windows

Using cmd type the following:

diskpart

Diskpart will open, in this terminal type:

# This will show all the drives on the computer
list disk

# Select the disk with the same storage capacity as the usb
# X - where x is the disk number of the usb
select disk X 

clean

Then open "diskmgmt.msc" and format the unused volume using the wizard.

After this the usb should "cleaned"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment