On 4/30/21 3:09 PM, Rich Shepard wrote:
Prior to taking an old Sony Vaio laptop for recycling I wanted to scrub the
hard drive.
First I used cfdisk and deleted each of the three partitions, wrote the
changes, then quit. For some reason this didn't work. Tried again, same
result. I'd like to understand why.
What did work was running 'rm -rf --no-preserve-root /'.
In addition to the other suggestions, there is also a tool called shred.
For those who are sufficiently paranoid, it is perhaps better than
using /dev/zero. For everyday use, dd'ing with /dev/zero will typically
be good enough and much faster.
Best to read the man page before running, but a simple invocation of
shred would look something like this:
shred -v /dev/disk_to_be_erased
As someone else pointed out, this is not appropriate for an SSD. In
that case the ATA Secure Erase command needs to be used.
<https://wiki.archlinux.org/index.php/Solid_state_drive/Memory_cell_clearing>
galen
--
Galen Seitz
[email protected]
_______________________________________________
PLUG: https://pdxlinux.org
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug