I wanted to format flash drive but accidentally I deleted its file system or something. Now the system doesn't recognize the flash drive, how is it possible to recover it?
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000efcdb
Device Boot Start End Blocks Id System
/dev/sda1 * 1 60307 484408320 83 Linux
/dev/sda2 60307 60802 3975169 5 Extended
/dev/sda5 60307 60802 3975168 82 Linux swap / Solaris
Disk /dev/sdb: 4073 MB, 4073717760 bytes
126 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 7812 * 512 = 3999744 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007dd56
Device Boot Start End Blocks Id System

sudo fdisk -lon your system with the flash drive plugged in? – digitxp Aug 21 '11 at 21:11