[[ solved ]]

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.

Next Update –

I started with a USB to SATA adapter that looked like a small box with a SATA connector on one edge and a USB cable coming out of one side, it had a power supply that connected to the small box - everything out in the open.

Then I went to a drive toaster - a dock where you slot the drive into a hole in the top of the dock, again powered and USB-3 (blue connector)

As of this update I have opened my USB-3 external drive and removed it’s native drive and put in one of the 1TB drives I wish to erase. I also switched to my production laptop. Now I have issued a dd command and it has written so far 28GB from /dev/urandom.

I think this will finally work. - I am marking this solved.

  • toastio@midwest.social
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    Can you run dd with the “status=progress” option set to see what’s going on when it stalls? Also, how long until it stalls? In my experience, dd takes a really long time to write over an entire drive of that size, so you may just need to wait it out (could take a couple of days). You can also try increasing the block size (e.g., “bs=8m” or “bs=8M”, with the case of the “m” depending on your OS) and see if that helps to speed things along. Typically, the default dd block size (512 bytes) is pretty slow.

    Note: I’m far from an expert but I have been using dd for similar applications as you for a few years. Hopefully something above can be of some help.