I'm running Ubuntu 24.04.1 LTS on a Raspberry Pi with a 16TB Toshiba MG08 drive connected via a USB to SATA adapter. I'm using this setup as a small network storage server.
My goal is to prevent the hard drive from spinning down. I previously achieved this using sdparm, but after a system reinstall, I'm encountering issues. I understand that hdparm isn't suitable in this case due to the USB adapter, as discussed in this related post.
Here are the commands I've tried and the output I'm receiving:
sdparm -l -a /dev/sdb
gives me:
/dev/sdb: TOSHIBA MG08ACA16TE 0209 Direct access device specific parameters: WP=0 DPOFUA=0 mode sense(10): transport: Host_status=0x07 [DID_ERROR] Driver_status=0x08 [DRIVER_SENSE]
MODE SENSE(10): Malformed SCSI command
sudo sdparm --flexible -6 -l --set=STANDBY=0 /dev/sdb
gives me:
couldn't find field acronym: STANDBY [perhaps a '--transport=' or '--vendor=' option is needed]
The same issue occurs when I try these commands on /dev/sda (my system drive). What's particularly frustrating is that these commands used to work perfectly. I've even saved the exact commands I used previously.
The drive is currently spinning down every minute, which is far too frequent for my needs. I'm unsure what's causing this change in behavior after the reinstall. Any insights or suggestions for troubleshooting this issue would be greatly appreciated.