Low-Level Format For a USB Flash Drive? 252
Luyseyal writes "I unwittingly bought one of these terrible flash cards at Fry's and have managed to nuke two of them, successively. I have a USB flash card reader that will read/write the current one at USB 1.0 speed, but it locks up every Ubuntu and XP machine I've come across in high-speed access mode. I have read that if I low-level format it that it could be fixed, though my current one doesn't support it. My Google-fu must be weak because I cannot seem to find a USB flash reader that specifies that it will do low-level formatting." Can anyone offer advice for resurrecting such drives?
Encryption (Score:4, Insightful)
Encrypt your data to avoid such hassles in the future. Encryption makes theft or loss of your medium a non-problem, besides the lost material value.
Re:GNU Shred? (Score:5, Insightful)
Also read TFS, though -- the issue isn't wiping the drive, it's attempting to completely reset it at a lower level than the disk blocks exposed as a linear block device.
To do that is always device-specific, which is why he's having issues.
Any brand has lemons but some just suck. (Score:5, Insightful)
How about... (Score:4, Insightful)
Like any good developer I'm ignoring what the customer asked for and trying to figure out what they need. ;)
You want to be able to write to the card at more than 1.0 speed. Here's some random thoughts:
1. Have you tried a different reader? Fry's sells them for as little as $7.99 (Sorry, couldn't resist that one.)
2. Have you tried a different class of device? How about formatting in a camera or PDA and see if that allows you to then read/write at the faster speed on a PC.
3. Can you return or exchange it as defective? If it isn't transferring at the advertised rate then that assumption can be made. See if they can get to full speed at Fry's.
4. You didn't mention what versions of Ubuntu you tried, but is it current? How about Windows 7 or a live CD of another distro? (see #1)
Of all the ba-jillion cards out there the fact that you've had problems with two of them with the symptoms you describe makes me think the problem might be on your end. Just a guess. Either way, good luck.
Bin it and call it lesson learned. (Score:3, Insightful)
Why did you not pay a little more for your flash drives and get something more reliable? If you want to go to the trouble of resurrecting your half-dead flash drives you can spend the $10-20 on a new one from a major brand name.
The problems you describe sound like shitty controller circuitry, that's either failing, poorly designed or quite likely both.
The lower level operations of flash are abstracted away behind the controller, with the exception of some drives theres you can't do much about it.
USB Flash drives and cards can be brought back to as-new performance by performing a write-erase pass over the entire drive. This was used to revive degraded used SSDs that would drop in performance, the TRIM feature now takes care of this on the fly. About all you can do for thumb drives and cards is to perform a single erase pass. If that doesn't work you're SOL.
Really cool new tool (Score:1, Insightful)
dd if=/dev/zero of=/dev/flashdrive
I'm really not sure why this is a question.
Don't waste your time (Score:3, Insightful)
If you want to wipe it for disposal, just hit it with a hammer.
Some things are not worth your time. Even if your time has no value.
Re:Hmm... (Score:3, Insightful)
Re:HP USB Disk Storage Format Tool (Score:3, Insightful)
It says at the bottom of their page that it supports flash memory through the use of card readers, so I don't see why it wouldn't work.
The main reason I'm skeptical is that this kind of stuff is, well, low-level. It can't possibly support all models of all cards, and it says nothing about what kind of flash. Could easily have been CF.
Re:dd of course (Score:3, Insightful)
Wrong, wrong, wrong. Flash doesn't store its data in "zeros", but rather in "ones"
Read this: Undeadly Article [undeadly.org]
Go down to the part that reads:
One of the tricks you can try is erasing the flash device entirely, but you need to realize the "erased state" for flash is when it is filled with all 1's. People regularly make the mistake of filling flash based storage devices with all zeros (as is typically done with real disks) without every realizing what they are doing.