I have 4 old hard drives that I pulled from an old Drobo that needs to be trashed. I bought a Mediasonic 4-bay RAID enclosure that I thought would be a good upgrade, but knew going into that the drives may not work because the manual for the new enclosure specifically says to use new drives to avoid problems. The exact product is this Mediasonic one.

I don’t care about the existing data on these drives, and that was originally what I thought was meant by “avoiding problems”. So I tried just putting the drives in to no avail. They don’t show up as drives in the file explorer. They don’t show up in “Disks”.

I also have an external hard drive dock - the 15 year old version of this one which does let me mount the drives and see them in Disks.

I have tried running “wipefs -a” and I’ve tried formatting them in Disks with no filesystem specified. I’ve also run parted on them, but anything I try in parted gives me the error “unrecognised disk label”.

If I can’t reuse these old drives then the enclosure is of less use to me than I had hoped as I don’t intend to buy new drives any time soon.

Is there anything else I can try to reset these drives to a state where they’ll act like new drives that have never been used before?

Update: The “tricks” haven’t worked so I’m doing the full disk write using dd. It’ll be a while before I have 2 disks prepped to try.

  • Kraven_the_Hunter@lemmy.dbzer0.comOP
    link
    fedilink
    arrow-up
    1
    ·
    3 days ago

    hdparm wouldn’t let me run the security-erase or security-erase-enhanced commands. It was indicating an IO failure. I thought maybe that was due to me not giving the drive a file system so I went back to Disks and gave it one, but still no luck. When I give it a file system the drive mounts though, so no actual hardware issues that I can see.

    I found a thread on another site about using dd to remove the last 1-10MB of a RAID disk in order to make their RAID appliance see the drives as unconfigured. That’s basically what I’m trying to do here so I followed those instructions but this Mediasonic bay is still not coming to life with the old drives. I might be at the point of sending it back and looking for something else.

    Just for completeness, the command used to wipe the end of the drive is as follows where you specify the amount to wipe using the “mb” variable and you change /dev/sdX to the correct drive. From a thread on Stack Exchange.

    disk=/dev/sdX && mb=10 && dd if=/dev/zero of=$disk bs=512 count=$(( 2048 * $mb )) seek=$(( $(blockdev --getsz $disk) - 2048 * $mb ))

    • flatbield@beehaw.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      2 days ago

      Hint. The secure erase commands are challenging. First you have to hot attach the drive. If you boot with drive connected it will be locked usually plus there is usually a timeout where it locks too. Then you have to use the correct security commands to unlock the drive for erase to work.