How to Wipe a Corrupt Partition from a USB Flash Drive

Datura

Captain Faptastic
Joined
Oct 12, 2006
Messages
47,937
Reaction score
9,709
Location
Floating Around
Okay, so here is the issue:

I borrowed an old XBox (2Gig) and wanted to play GTA V which requires at least 8 gig of space to install the game in order to play. So, I took my 32 gig USB flash and formatted it using the XBox to make it Xbox 'friendly'. After a few weeks I wanted to use the same USB drive to put some movies on but when I inserted it into my PC and formatted it I saw it had become a 2 Mb flash drive :wtf:

I tried everything starting with google searches which lead me from disk manager to partition wizards (I tried about 10 different free programs to no avail). Turns out that the Xbox creates an encrypted partition that doesn't get picked up by any of the wizards so doesn't get formatted or deleted. With very little help from trawling online forums I decided to throw caution to the wind and stuff around until I either destroyed the flash or fix it. Cool news was that I didn't destroy it but eventually managed to restore my USB to a functioning 32 Gb drive and was actually surprisingly easy...

Solution: Opened command prompt as admin.
Type: diskpart
Type: get list
You will get a list of commands
Select the disk you want to repair
Expand

After you have done this, go to your disk manager (Start> right click Computer> select Manage> select Manage Disks under Storage> Right click the problematic disk> Select 'Set Partition as Active' and it should format the encrypted partition.

Voila!

Was a pain in the ass and the interwebs was not very helpful. The Wizards all call the diskpart but don't expand so when you try to delete or wipe a partition that is Xbox encrypted (corrupt) it crashes the wizards...
 
The same procedure can be followed if you have a Linux formatted flash drive that you want to use in Windows. I often have to do this when I want to use my Openelec USB flash drives in windows after installation.
 
Run a urandom pass of zeros on it from linux, it removes all data/partitions.
 
for future reference... Windows 7 is the only OS so far that can recognize the Xbox partition I think... I have a Ext NTFS drive that has been customized via the xbox. Also, don't configure the drive, only customize it and use the least amount of space you need. That way, you can still store files on the other non-customized partition.
 
Top
Sign up to the MyBroadband newsletter
X