Skip to content

Instantly share code, notes, and snippets.

@krisbolton
Last active November 9, 2024 22:20
Show Gist options
  • Save krisbolton/fc34ee629721d979f9f4275cba8dcfe5 to your computer and use it in GitHub Desktop.
Save krisbolton/fc34ee629721d979f9f4275cba8dcfe5 to your computer and use it in GitHub Desktop.
How to fix a USB drive showing up as two drives (fragmented into multiple partitions) on Windows

How to fix a USB drive showing up as two drives (fragmented into multiple partitions) on Windows:

  1. Hold the Windows key and press X, select PowerShell (Admin), select Yes to the pop-up. You can also use Command Prompt.
  2. In the Powershell interface type diskpart to enter the disk partition tool.
  3. Type list disk to see all disks listed.
  4. Select the USB drive by typing select disk [NUMBER]. Be careful to select the correct drive.
  5. Type clean. An error will occur if you have the drive folder open, close the window and repeat the command if this happens.
  6. Type create partition primary.
  7. Type format fs=ntfs quick to format the drive (you can also choose to set fs=fat32).
  8. Type active.
  9. Type assign.
  10. Type list disk and confirm your drive looks healthy.
  11. Type exit to exit.

You can get visual confirmation by typing ‘disk manager’ into the windows search bar in the bottom left. Select the USB to view.

@mozzammal2
Copy link

great!! worked for me

@Injo-18
Copy link

Injo-18 commented Aug 6, 2024

Thank. You

@anilkachhadiya
Copy link

Great... Thank you 👍

@paolo2000h
Copy link

thanks!

@arteson-mec
Copy link

thanks! this saved me from throwing my pc out the window and trying to burn down google hq!

@SrDmitrov
Copy link

Thank you!

@Shariar-Hasan
Copy link

thank you

@noah-hw-kim
Copy link

Thank you so much!

@Marius385
Copy link

Thank you sir!

@damian-cozma
Copy link

Very useful!

@jacekrudek
Copy link

Great instruction!

@GabinoJeri
Copy link

Thanks a bunch, bud. Was wondering why I had difficulties formatting.

@ShubhamShakyawal
Copy link

It worked!!. Thank you.

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