How to repair corrupted pen drive or SD card?

How To Repair Corrupted Pen Drive And USB-min