How can I get an unreadable Flash Drive to work? I got this pretty cool flash drive as a gift and I can't seem to use it. Every time I plug it in, a pop up comes up that says: The disk you inserted was not readable by this computer.

I opened up Disk Utility and tried to erase it, in the hope of making it readable. It shows the loading bar and after a couple minutes, a pop-up appears and says: Disk Erase failed with the error: Unable to write to the last block of the device. So I remove it, and try again with no avail. I even tried using terminal and the diskutil eraseVolume command and I get: 

newfs_hfs: write (sector 0): Invalid argument

Mounting disk

Could not mount disk2 with name (null) after erase

Error: -69832: File system formatter failed


So I tookit out, and tried again with diskutil randomDisk just to see if I couldeven write on it. and then I got this:

Started erase on disk2
Error: -69879: Couldn't open disk
Underlying error: 2: POSIX reports: No such file or directory


Does anyone have any idea how I can make this drive readable?
Can you get the disk identifier? In Disk Utility, select the drive and choose "Info" – it should read something like disk1 or disk2 or so. (But NOT disk0; that's your internal HD!)

Then open a terminal, and type in

sudo dd if=/dev/zero of=/dev/diskX


(where diskX is of course the disk identifier you got earlier.)

Type in your admin password, and it should overwrite every block of the disk with 0x00 (i.e. erase it).

Then, you can format your drive.

[Please be cautious when doing this; I'm not responsible for anything if anything goes wrong ;-)]