Recover Missing USB Partition

jeffsbernard

Reputable
Mar 14, 2014
1
0
4,510
Ok so I try to pretend that I am really smart with computers but I am obviously not. A few months ago I tried to install mac os on a seperate partition of my windows pc using the Niresh tutorial found online. I failed miserably. It required me to put a .dmg file onto my usb flash drive in order to install the new os. Now all I want is to be able to completely wipe clean the flash drive so I can use it for something else. It is a 16 gb but only 7.6 shows. I have downloaded minitool partition wizard and several others and have tried to delete the partition using disk management but there is no partition visible. It only shows 7.6 gb. I know the other storage is dedicated to that .dmg file but how do i remove it if it is invisible? Please help! I have spent hours on this.
 

miller3476

Distinguished
Jul 16, 2012
35
0
18,540
make sure USB drive is plugged in

open a command prompt - cmd

type diskpart <enter>
type list disk <enter>

you will see a list of disks connected to your system like this:
DISKPART> list disk

Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 111 GB 0 B *
Disk 1 Online 1863 GB 0 B *
Disk 2 Online 961 MB 0 B <<---- this is my usb drive. Notice that is it much smaller than the others

type select disk # (use the disk number of the usb drive)

type disk list again to verify it is selected

DISKPART> list disk

Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 111 GB 0 B *
Disk 1 Online 1863 GB 0 B *
* Disk 2 Online 961 MB 0 B <<-- Notice the "*" at the front

type clean

this will completely erase the disk.

**** IMPORTANT make very sure you have the correct drive selected. you can very quickly and easily delete the OS disk partition information!!