Skip to content

Instantly share code, notes, and snippets.

@joshschmelzle
Last active November 27, 2023 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshschmelzle/b03964a543e3aa0499a9ec360298878b to your computer and use it in GitHub Desktop.
Save joshschmelzle/b03964a543e3aa0499a9ec360298878b to your computer and use it in GitHub Desktop.
Fix flash drive for Windows installation media

Thanks to cereberus on tenforums.com.

Do you have a flash drive that you previously used for a Linux install and now want to use it for a Windows install? Does the flash drive not show up for the Windows installation media? Follow the steps below to wipe the USB flash drive and stage it for Windows.

Open a command prompt/terminal with admin rights and type the following:

diskpart
list disk
select disk n (where n is disk number of usb drive from above command)
list disk (check asterisk by usb disk to show you have selected right drive)
clean (warning wipes drive completely hence must be sure right drive)
create partition primary
select partition 1
format fs=ntfs quick
assign
exit
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment