Cygwin – Why Is Hdparm Not Available?

cygwin;hard drivehdparmsecure-erasessd

I'm running Cygwin on Windows 7 and have done for several years now. I use kou1okada's brilliant fork of apt-cyg to install packages from the Cygwin repository, and up until now this has suited me fine. However I recently discovered that hdparm wasn't available at all from the Cywygin repository, and this is confirmed both by running apt-cyg install hdparm and by using the Cygwin installer.

This is surprising to me considering how popular a tool hdparm is, and the fact that it is, to my knowledge, the only CLI tool that can be used to trigger the ATA Secure Erase, Enhanced Secure Erase and Block Erase firmware commands on modern hard drives, which are generally considered the safest and most secure methods to wipe modern SSDs.

Confusingly, looking on the Cygwin website seems seems to show the package as existing, but "obsolete" for some unknown reason. Why would such a popular tool be obsolete, and is there any way I can get use it on Cygwin without compiling it from source?

If there isn't a way, are there any alternatives available on Cygwin that can also be used to issue ATA firmware commands to SSDs?

Best Answer

Thanks to David Postill for looking into the Cygwin mailing lists to find this 2013 exchange between Corinna Vinschen, the current lead and then-co-lead of the Cygwin project, and Christian Franke, the former maintainer of Cygwin's hdparm port.

Corinna Vinschen wrote:

Please guys, be so kind as to reply to this mail, so we can check if [these] packages are orphaned, or if you are just busy.

...

Christian Franke:

  • cdrkit
  • ddrescue
  • grub
  • hdparm
  • isomaster
  • ncdu

Christian Franke's response confirms that he had stopped maintaining the hdparm port, while integrating some features from it into smartctl:

Christian Franke wrote:

ddrescue: RFU pending :-) cdrkit, isomaster, ncdu: Coming soon.

I decided to no longer maintain grub and hdparm. Upstream grub can no longer be built on Cygwin.

Meantime I added support for some use cases of hdparm (AAM, APM, write cache, read lookahead, standby timer, security freeze) to smartctl.

Christian


In short: Cygwin's port of the hdparm utility, crucial as it is for securely erasing modern SATA and SAS hard drives, hasn't been maintained since 2013.

Related Question