Here we will see how to repair corrupted pen drive using cmd, if your pendrive shows reduced storage capacity or can not format properly then we can solve it by this method.
Step 1: Press win+R
Step 2: Type cmd then press enter
Step 3: Type following commands in command prompt
Type diskpart press Enter
Type list disk press Enter
Type select disk 1 press Enter
Note: your disk number can be changed so be careful while selecting your disk number
Type clean press Enter
Type create partition primary press Enter
Type active press Enter
Type select partition 1 press Enter
Type format fs=fat32 press Enter
Exit