LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-11-2011, 12:06 PM   #1
dman777
Member
 
Registered: Dec 2010
Distribution: Gentoo
Posts: 224

Rep: Reputation: 8
hdparm secure erase


can hdparm do secure erase on just a partition or does it have to be the whole drive?
 
Old 01-12-2011, 05:50 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
I don't think that's what it's primary use is, you may be better off using something like shred - 'shred -zvf -n 15 /dev/sda1'
 
Old 01-12-2011, 09:10 PM   #3
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 485

Rep: Reputation: Disabled
The whole drive.

In order to use hdparm to securely erase a hard drive you must first lock the drive.
You can only use "security-erase" on a locked hard drive.

If you are looking to wipe a partition use:

dd if=/dev/zero of=/dev/sda1 -or- dd if=/dev/urandom of=/dev/sda1. The first is a bit faster than the last.

shred -vn 1 /dev/sda1 -or- shred -vzn 1 /dev/sda1
 
Old 01-13-2011, 02:28 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
OP was asking for secure erase, '-n 1' won't really cut it
 
Old 01-13-2011, 06:32 AM   #5
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 485

Rep: Reputation: Disabled
Sure it will. That multi-pass stuff is old school and a waste of time.

That said, if it makes you feel better go for it.

http://www.anti-forensics.com/disk-w...pass-is-enough

Last edited by chrisretusn; 01-13-2011 at 06:33 AM.
 
1 members found this post helpful.
Old 01-13-2011, 04:28 PM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Thanks, nice reference .. unfortunately, security policies still have to be followed
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
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
hdparm doesn't load hdparm.conf KOTAPAKA Linux - Hardware 2 05-21-2008 09:54 AM
Secure Erase Tool? subaruwrx General 5 08-14-2004 10:51 PM


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

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