LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (http://www.linuxquestions.org/questions/general-10/)
-   -   Secure Erase flash media? (http://www.linuxquestions.org/questions/general-10/secure-erase-flash-media-901427/)

Super TWiT 09-06-2011 09:20 AM

Secure Erase flash media?
 
Hi everyone, I need a way to secure erase my old mp3 player which I am selling on ebay. I also used it as a thumbdrive, and so I think I may have some important data on there. I know how to secure erase a hard drive (software like dban, which does many writes of random data), but doing so to a flash-memory device could destroy it due to its limited number of write cycles. Any ideas?

angel115 09-06-2011 09:35 AM

Quote:

but doing so to a flash-memory device could destroy it due to its limited number of write cycles.
Well you will at least need to write it once to erase your data although 7 pass is recommended:

Try the following as root (where XX is where your flash card is "ex: sdb1")
Code:

dd if=/dev/urandom of=/dev/sdXX

and when they say "limited number of write cycles" it is in thousand or even million times, so it's not this few pass that will put your memory flash into the grave ;)

H_TeXMeX_H 09-06-2011 01:16 PM

A single pass with zeros or random data should be enough. There is no proof of any kind to validate the 7 pass theory.

I don't think that this will destroy the drive, but there's no guarantee of that.

Code:

dd if=/dev/zero of=/dev/sdx


All times are GMT -5. The time now is 01:00 AM.