I tried a couple of live Linux distributions that didn't work for this purpose. Then I tried the latest version of Fedora Workstation on a live disc. It worked (because the hdparm package was immediately available).
You'll need to know the drive's identity and replace "yyy" in all commands...