While trying to use my 16GB USB flash drive as a raw-disk for VMware, I managed to corrupt the partition table. This rendered the drive useless for data storage. As none of the information contained on the drive was useful, it seemed that the best solution was a straightforward partition table wipe and rebuild. This can be difficult on Windows as Control Panel->Administrative Tools->Disk Management does not allow the deletion of the primary partition.
Many Googl’d solutions involved rebooting with one repair/installation disk or another, however I’ve found a quicker way…
- Download MbrFix. [Working mirror at time of writing.]
mbrfix /drive <num> driveinfoto identify the USB flash drive. The <num> refers to the physical identifier. Start at zero and increment until one of them gives a size reading that matches; this is probably the correct drive.
mbrfix /drive <num> cleanand enter “y” to confirm partition deletion. WARNING: IF YOU DO THIS, DATA RECOVERY FROM THE DRIVE IS DIFFICULT, BE SURE YOU HAVE CHOSEN THE CORRECT DRIVE!
- Go to Control Panel->Administrative Tools->Disk Management and right-click on the unallocated space. Select create new partition and fill in the details.
This has reset the drive with a healthy partition, you should find it has regained functionality!