Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Question on securely erasing old hd before dumping
Question on securely erasing old hd before dumping
Hi folks,
I have several 40G hard drives which I'm prepared to dump. Before giving them to my friends what will be the easy way to securely erase all data on them.
I'm prepared performing following steps.
1)
attach the hard drives to a PC
2)
boot up the PC with a USB drive
3)
run:
$ fdisk -l | grep '^Disk'
$ fsck -f -y /dev/hdx1
x is the device number of the hard drive, such as a,b,c etc.
Can above steps permanently erase all data on the hard drive?
Just found;
Use an Ubuntu Live CD to Securely Wipe Your PC’s Hard Drive
http://www.howtogeek.com/howto/15037/us ... ard-drive/
Can it work? TIA
B.R.
satimis
I have several 40G hard drives which I'm prepared to dump. Before giving them to my friends what will be the easy way to securely erase all data on them.
I'm prepared performing following steps.
1)
attach the hard drives to a PC
2)
boot up the PC with a USB drive
3)
run:
$ fdisk -l | grep '^Disk'
$ fsck -f -y /dev/hdx1
x is the device number of the hard drive, such as a,b,c etc.
Can above steps permanently erase all data on the hard drive?
Just found;
Use an Ubuntu Live CD to Securely Wipe Your PC’s Hard Drive
http://www.howtogeek.com/howto/15037/us ... ard-drive/
Can it work? TIA
B.R.
satimis
Re: Question on securely erasing old hd before dumping
You can use wipe from a debian live cd as well. Personally I would just use dd. Note just "formatting" the drive does not wipe the data. You will need to overwrite every byte.
http://how-to.wikia.com/wiki/How_to_wip ... n_in_Linux
Use caution that you wipe the correct devices and not something you want to keep.
http://how-to.wikia.com/wiki/How_to_wip ... n_in_Linux
Use caution that you wipe the correct devices and not something you want to keep.
Always on Debian Testing
Re: Question on securely erasing old hd before dumping
You can use dd as the link above shows or you can use shred.
Code: Select all
shred -v -n 1 /dev/sdx
Re: Question on securely erasing old hd before dumping
No.satimis wrote:Can above steps permanently erase all data on the hard drive?
The dd method discussed in the link provided by vbrummond, however, is perfectly adequate to wipe the drive clean. And it's way quicker than shred.
Re: Question on securely erasing old hd before dumping
Thanks for your advice.vbrummond wrote:You can use wipe from a debian live cd as well. Personally I would just use dd. Note just "formatting" the drive does not wipe the data. You will need to overwrite every byte.
http://how-to.wikia.com/wiki/How_to_wip ... n_in_Linux
I used dd command for sometimes. But the data erased can be recovered as mentioned in some articles, suggesting running a large size file to take up the newly formatted old hard drive.
I'll remove the running hard drive on the PC using a Live CD/USB to boot the PC.Use caution that you wipe the correct devices and not something you want to keep.
satimis
Re: Question on securely erasing old hd before dumping
Urban legend. It might be possible for someone with incredibly sophisticated hardware recovery tools to recover some portion of the drive, but you're not giving these drives to the NSA, you're giving them to your friends. Using dd is perfectly adequate.satimis wrote:But the data erased can be recovered as mentioned in some articles
Note: The mere fact that the legend is repeated often (far too often) doesn't make it true. The plural of "anecdote" is not "data."
Last edited by dasein on 2012-07-30 03:04, edited 1 time in total.
Re: Question on securely erasing old hd before dumping
Hi 4D696B65 and dasein,
Thanks for your advice.
Can "shred" permanent erase all data on the old HD, unable to recover/undelete? If YES, is following article relevant?
Howto Delete Files Permanently and Securely in Linux
http://techthrob.com/2009/03/02/howto-d ... -in-linux/
TIA
satimis
Thanks for your advice.
Can "shred" permanent erase all data on the old HD, unable to recover/undelete? If YES, is following article relevant?
Howto Delete Files Permanently and Securely in Linux
http://techthrob.com/2009/03/02/howto-d ... -in-linux/
TIA
satimis
Re: Question on securely erasing old hd before dumping
If you want to use shred, there's certainly nothing wrong with it. But it is unnecessary, and I defy you to find a single independently verified instance of (keyboard) data recovery after a drive has been zeroed out with dd.
http://hardware.slashdot.org/story/08/0 ... unaccepted
EDIT Link to higher quality Web site
Edit #2: Clarification of what "data recovery" was meant to convey
http://hardware.slashdot.org/story/08/0 ... unaccepted
EDIT Link to higher quality Web site
Edit #2: Clarification of what "data recovery" was meant to convey
Last edited by dasein on 2012-07-30 03:26, edited 3 times in total.
Re: Question on securely erasing old hd before dumping
Hmm, you're worried about your friends doing something nefarious like recovering your private data from a drive you gave them?
1) dd the drive.
2) Insert a 1/4" bit into your favorite drill and go to town on the platter.
3) Deposit mangled discs in nearest waste receptacle.
4) Consider finding new friends?
1) dd the drive.
2) Insert a 1/4" bit into your favorite drill and go to town on the platter.
3) Deposit mangled discs in nearest waste receptacle.
4) Consider finding new friends?
I wish for a conjugal visit and world peace. (Don't want to seem selfish.)
Re: Question on securely erasing old hd before dumping
+1traveler wrote:4) Consider finding new friends?
Re: Question on securely erasing old hd before dumping
Yeah, I know a fellow who opted to fry, smash, etc drives rather than let me dd them, prove the data is deleted, then let me have them (or even buy them, or hell he himself could reuse them). Thanks for the link dasein, I will have to pass that along to him.
Always on Debian Testing
Re: Question on securely erasing old hd before dumping
Einstein was right about the infinity of stupidity.vbrummond wrote:Yeah, I know a fellow who opted to fry, smash, etc drives rather than let me dd them, prove the data is deleted, then let me have them (or even buy them, or hell he himself could reuse them).
Be sure to send him the updated/slashdot link.
Edit: Found this, too. Nicely documented: http://www.anti-forensics.com/disk-wipi ... -is-enough
(Unless of course the OP's friends have an electron microscope handy.)
Re: Question on securely erasing old hd before dumping
Hi all,
A further question.
Running;
# dd if=/dev/zero of=/dev/sdx bs=1M
will take long time to complete.
# dd if=/dev/urandom of=/dev/sdx bs=1M
even takes longer time.
How to check its progress? Instead of only seeing the cursor blinking. TIA
satimis
A further question.
Running;
# dd if=/dev/zero of=/dev/sdx bs=1M
will take long time to complete.
# dd if=/dev/urandom of=/dev/sdx bs=1M
even takes longer time.
How to check its progress? Instead of only seeing the cursor blinking. TIA
satimis
Re: Question on securely erasing old hd before dumping
1) Using /dev/urandom (or shred, or making 25 passes, or whatever) isn't better, merely slower. I don't know how to make this point any clearer or more emphatically.
2) Google check dd progress
3) For dd, consider using a bs value equal to your HDD's hardware cache size. It probably won't make a huge speed difference, but there's no reason not to pump data to the drive as fast as the drive can handle it.
2) Google check dd progress
3) For dd, consider using a bs value equal to your HDD's hardware cache size. It probably won't make a huge speed difference, but there's no reason not to pump data to the drive as fast as the drive can handle it.
Re: Question on securely erasing old hd before dumping
$ sudo hdparm -I /dev/sda | grep -i speeddasein wrote: - snip -
3) For dd, consider using a bs value equal to your HDD's hardware cache size. It probably won't make a huge speed difference, but there's no reason not to pump data to the drive as fast as the drive can handle it.
[sudo] password for satimis:
Code: Select all
* Gen1 signaling speed (1.5Gb/s)
* Gen2 signaling speed (3.0Gb/s)
Code: Select all
# dd if=/dev/zero of=/dev/sda bs=? count=?
B.R.
satimis
Re: Question on securely erasing old hd before dumping
Another +1 for dd...
Once a drive has been 0 filled, you cannot recover data, there are no tools in existence which can recover something which is simply not there. The idea that some intelligence agency can still recover data is complete bollocks put out by unscrupulous developers of 3rd party security software for wintards...
Once a drive has been 0 filled, you cannot recover data, there are no tools in existence which can recover something which is simply not there. The idea that some intelligence agency can still recover data is complete bollocks put out by unscrupulous developers of 3rd party security software for wintards...
- kiyop
- Posts: 3983
- Joined: 2011-05-05 15:16
- Location: Where persons without desire to improve themselves fear to tread, in Japan
- Been thanked: 3 times
Re: Question on securely erasing old hd before dumping
I vote for "shred -n 1 -v".
EDIT at Fri Aug 3 07:18:22 JST 2012:
I have thought that "shred -n 1 -v" is faster than "dd if=/dev/urandom of=".
EDIT at Fri Aug 3 07:18:22 JST 2012:
I see. Thanks.4D696B65 wrote:Shred is slower because it does multiple writes while dd does only one.dasein wrote: The dd method discussed in the link provided by vbrummond, however, is perfectly adequate to wipe the drive clean. And it's way quicker than shred.
The purpose of shred is to shred, dd is a copy command
.
I guess it has much to do with your level of paranoia.
I have thought that "shred -n 1 -v" is faster than "dd if=/dev/urandom of=".
Last edited by kiyop on 2012-08-02 22:12, edited 3 times in total.
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/
http://kiyoandkei.bbs.fc2.com/
Re: Question on securely erasing old hd before dumping
So do I.kiyop wrote:I vote for "shred -n 1 -v".
Shred is slower because it does multiple writes while dd does only one.dasein wrote: The dd method discussed in the link provided by vbrummond, however, is perfectly adequate to wipe the drive clean. And it's way quicker than shred.
The purpose of shred is to shred, dd is a copy command
.
I guess it has much to do with your level of paranoia.
Re: Question on securely erasing old hd before dumping
I learned to stop worrying about extra dimensional beings stealing my data.4D696B65 wrote:I guess it has much to do with your level of paranoia.
If in doubt though, the best approach is a star head (torx) screwdriver (I think it's a "T8") and just dismantle the drives and wreck the platters...
Re: Question on securely erasing old hd before dumping
I just hammer a few nails in an old drive so a garbage man with my curiosity will give up.cynwulf wrote:I learned to stop worrying about extra dimensional beings stealing my data.4D696B65 wrote:I guess it has much to do with your level of paranoia.
If in doubt though, the best approach is a star head (torx) screwdriver (I think it's a "T8") and just dismantle the drives and wreck the platters...