Last active
April 27, 2023 10:01
-
-
Save JonasNilson/cca2d7946fc5c2216c0b286f4c9edde5 to your computer and use it in GitHub Desktop.
Remove multiple partitions and restore your USB with DISKPART
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RUN: CMD as Administrator | |
C:\WINDOWS\system32> diskpart | |
DISKPART> list disk | |
Disk ### Status Size Free Dyn Gpt | |
-------- ------------- ------- ------- --- --- | |
Disk 0 Online 465 GB 0 B * | |
Disk 1 Online 931 GB 0 B | |
Disk 2 Online 28 GB 1024 KB | |
DISKPART> select disk 2 | |
Disk 2 is now the selected disk. | |
DISKPART> clean | |
DiskPart succeeded in cleaning the disk. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment