Unplugged USB stick while formatting - now not recognized any more [duplicate]

I was formatting my USB memory stick using Ubuntu and chose "Override existing data".

I accidentally knocked the memory stick out of the USB port. When I put it back into my Ubuntu computer it was not visible in the file manager (Nautilus), and it does not appear in my unity dock.

I have already tried rebooting the computer with the memory stick inserted. But no effect.

What can I do to bring my memory stick back to life?


sudo apt-get install gparted

Launch GParted from the dash, switch to the usb stick, choose Device → Create Partition Table (accept the default setting), create a new partition.