I have an HP pendrive of 16GB. One day my little brother tried to make a bootable Hackintosh using that pendrive and we had a power cut when the write process was going on (my brother was using Mac OS X 10.6 (Snow Leopard) hackintosh). After that happened, I tried to format it with GParted but it gave me the following error message below; Is there a way to fix this pendrive?

shred -n 1 -v /dev/sdX(with the correct device node corresponding to the USB drive) to erase everything on the drive, then create a new partition using GParted again. – Mar 22 '15 at 12:26