this post was submitted on 01 Jul 2023
7 points (100.0% liked)

Linux

48364 readers
904 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I have a stack of SATA hard drives that I need to erase.

I have a USB drive dock, a box that a drive can be set into that connects to my computer via USB-3.

I am using DD to write zeros to the raw device, in this case, /dev/sdf.

No matter the actual size of the drive dd stops at about 3 to 7 gb. These are 300 gb to 3 TB drives.

I am not mounting the drives, but I do ensure they are visible to the system with lsblk. To change drives I turn off the dock. The drive then disappears from lsblk. When I insert a different drive and turn the dock back on again /dev/sdf re-appears.

Are all my drives bad? If they are I will need to have them "professionally" destroyed at about $25 a drive.

you are viewing a single comment's thread
view the rest of the comments
[–] toikpi 1 points 1 year ago

I would suspect the cabling and/or the dock before all your drives.

Writing zeros to hard disk does not securely delete the contents. https://en.wikipedia.org/wiki/Gutmann_method

A further problem with writing zeros to the contents to /dev/sdf/ is that contents of any relocated sectors will not be over-written. It might be possible to recover data from those bad sectors.

If you can get the dock working, look at using hpparm to do SATA secure delete? It has flags to support this. https://www.putorius.net/securely-erase-a-sata-hard-drive-hdparm-linux.html You could then use hpparm to set an unique, LONG, random password on each drive.