Repairing Corrupted PenDrive

Repairing Corrupted PenDrive
(diskpart.exe)



There is no volume selected ?
Please select a volume and try again ?

Lets start:
Type “diskpart” in the run box and Press enter. 

At that prompt, type “list disk”.

p/s: In the list output on our machine you can see the computer’s hard drive (119GB) and the removable SD card (14GB). It is absolutely critical you note the proper disk number. DISKPART commands are immediate and without any warning. 

After identifying your SD card’s disk number, enter the following command “select disk #” where # is the disk number of your SD card.


p/s:Whatever commands you execute after this point will only make changes to the selected disk; now would be a good time to double check you’ve selected the right disk just to be extra safe.

Next, now enter the command “clean” 


p/s:The clean command zeroes out the sectors of the disk that contain the partition data. If you wished to zero out all data on the SD card you could use “clean all” instead, but unless you have a pressing privacy/security reason for overwriting the the entire SD card with zeros, it’s unwise to waste the read/write cycles of the flash media.

After cleaning the disk, enter the following command “create partition primary”


p/s:The command, as the syntax implies, creates a new partition on the disk and sets it to primary. After creating the primary partition, the entire storage capacity of the pendrive should be available to Windows. If we peek back into Disk Manager, we no longer see a tiny partition with a huge hunk of unallocated space, but a large partition ready to be formatted:

done
enjoy :)

0 comments: