Skip to content

Instantly share code, notes, and snippets.

@ZeroQLi
Last active July 30, 2021 12:09
Show Gist options
  • Save ZeroQLi/b332dc4e3dd11e44f34c0b54b28affc4 to your computer and use it in GitHub Desktop.
Save ZeroQLi/b332dc4e3dd11e44f34c0b54b28affc4 to your computer and use it in GitHub Desktop.
Restore a USB flash drive containing an ISO

taken from https://www.pendrivelinux.com/restoring-your-usb-key-partition/

Open a command Prompt as administrator (cmd.exe).

Type Diskpart then press enter.

Next type List Disk then press enter.

Type Select Disk X (where X is the disk number of your USB drive) then press enter.

Then type Clean and press enter.

Next type Create Partition Primary then press enter.

Type Format fs=Fat32 Quick then press enter (You can also use NTFS or exFAT).

Then type Active and press enter.

Finally, type Exit then press enter to Quit.

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