Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > General
User Name
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!


  Search this Thread
Old 09-06-2011, 09:20 AM   #1
Super TWiT
Registered: Oct 2009
Location: Cyberville
Distribution: Debian
Posts: 132

Rep: Reputation: 16
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?
Old 09-06-2011, 09:35 AM   #2
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 533

Rep: Reputation: 79
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")
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

Last edited by angel115; 09-06-2011 at 09:38 AM.
Old 09-06-2011, 01:16 PM   #3
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
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.

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
hdparm secure erase dman777 Linux - General 5 01-13-2011 04:28 PM
Secure Erase causes HDD to stop being detected galapogos Linux - Hardware 4 07-16-2010 10:17 PM
Secure erase HDD from within itself paddyrooney Linux - Security 4 12-16-2009 04:20 PM
Best method to secure erase an external hard drive xri Linux - Hardware 1 01-16-2009 11:40 PM
Secure Erase Tool? subaruwrx General 5 08-14-2004 10:51 PM > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 02:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration