|
|||
Secure erasing of HD with dd
Hi
In order to do begin a secure erase of the hard disk of my hp530, I wanted to use a command like the following: Code:
# dd if=/dev/zero of=/dev/<deviceFileOfHardDisk> I tried also with OpenBSD, but I found a problem. I booted with an usb key with install67.fs for i386. At the first prompt, I chose (S) to have a shell. I looked for the name of the disk with Code:
#sysctl Code:
hw.disknames=cd0:,sd0:,rd0:cca629fbd647ae2c,sd1:d38e63c5f7d95f4a I don't know what sd1 is. I tried the dd command with of=/dev/sd1c but the response was "no such file or directory" and indeed in /dev there was not such a file. I tried also with other names, with no success. It is difficult for me to show you the complete content of /dev, because I can't write it to any file at this stage. But I'm relatively sure that there is nothing associated with the HD. Is it possible to do what I want using the usb key of installation and the dd command? |
|
|||
Thanks jggimi.
It works! I only had to use a buffer size smaller than that in your example. With bs=32M I got Code:
dd: input buffer: Cannot allocate memory A super prudential bs=1M worked (and is still working.....) I didn't know anything about atactl. Interesting. Thanks again! |
|
||||
Various secure erase commands have been included as part of the ATA standards for a very long time. In these modern times, many SSDs encrypt by default, and the fastest way to "erase" the data is to have the electronics merely delete the key.
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The most secure OS | bsdcord | Other OS | 16 | 22nd October 2023 12:56 AM |
How is this secure ? | bsd007 | OpenBSD Security | 11 | 1st October 2018 05:21 PM |
Hardware Self-erasing flash drives destroy court evidence | J65nko | News | 0 | 2nd March 2011 05:43 PM |
how to secure my ftp? | milo974 | OpenBSD Security | 3 | 4th August 2009 03:47 PM |
Is this secure? | Ungenious | OpenBSD Security | 4 | 30th November 2008 02:27 AM |