My setup: Raspberry 4 / Raspberry OS; additional 3TB WD HDD attached via USB3
I was using hdparm to spin down this harddisk after 3o min. This was working perfectly fine until few days ago.
Now, there was a power outage that caused the raspi to reboot, and since then the hdparm command just stopped working.
Here is the output:
root@raspi:/ # hdparm -S /dev/sdb -S: bad/missing standby-interval value (0..255) root@raspi:/ # hdparm -S 36 /dev/sdb /dev/sdb: setting standby to 36 (3 minutes) root@sraspi:/ # hdparm -S /dev/sdb -S: bad/missing standby-interval value (0..255) The drive is not spinning down after 3 min.
Smartmontools say the disk is healthy, also some samba shares on the disk work fine. And like I said, before the power outage and forced reboot all was ok.
Anybody has an idea what's the problem here???
Update: I tried to use sdparm, result:
root@raspi:/ # sdparm --all /dev/sdb /dev/sdb: asmedia ASM1153E 0 Write parameters (MMC) mode page: BUFE 0 [cha: n, def: 0, sav: 0] root@raspi:/ # This is very weird for me again:
- it says ASM1153E, which is my USB controller, but wasn't sdparm supposed to talk directly to the harddisk???
- there are parameters missing, especially SCT and STANDBY which I intended to use (maybe because of 1.??)
Any help or thoughts are very appreciated
hdparm -y /dev/sdbworks!hdparm -Scan get the value. The manual says "set", while for some other options it explicitly says "get/set". And there is this answer which may or may not be right, but ifhdparm -Sever worked for getting the value then I guess some answer there would advise it. I've seen other similar threads, some advisehdparm -I … | grep level(which I believe is totally wrong) but none adviseshdparm -S. IMO the error you got tells nothing about your drive. Maybe you're right something is wrong, but the error has nothing to do with it.