If you have any corrupted pendrive and you want to repair it, then there is only one way to repair it , That is you have to format it with proper way .
You can use any software but best way is using command line.
So here is the process
step 1: Open terminal
step 2: sudo -i
step 3: fdisk -l
step 4: umount sd...... (note your storage device )
step 4: mkdosfs -F 32 -I /dev/sd.....
Thanks for watching