what errors out of interestFollowingGhosts wrote:I tried all night last night, but HDParm kept giving me errors ...
Code: Select all
sudo hdparm -k1 -K1 -S120 /dev/sda
/dev/sda:
setting keep_settings to 1 (on)
HDIO_SET_KEEPSETTINGS failed: Invalid argument
setting drive keep features to 1 (on)
HDIO_DRIVE_CMD(keepsettings) failed: Input/output error
setting standby to 120 (10 minutes)
HDIO_GET_KEEPSETTINGS failed: Invalid argument
Code: Select all
pi@raspberrypi ~ $ sudo hdparm -S120 /dev/sda
/dev/sda:
setting standby to 120 (10 minutes)
Code: Select all
/dev/sda {
spindown_time = 120
}
I use a USB to 3.5"PATA/2.5"PATA/SATA adaptor with a Jmicron chip. They are very common and cheap on ebay from china (around 2 quid).jago25_98 wrote:how do you find a cheap USB controller for a 2.5" drive that supports the spindown command?
Code: Select all
debian:~# hdparm -S5 /dev/sdb
/dev/sdb:
setting standby to 5 (25 seconds)
HDIO_DRIVE_CMD(setidle) failed: Invalid argument
Code: Select all
sudo hdparm -S5 /dev/sda
/dev/sda:
setting standby to 5 (25 seconds)
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Code: Select all
sudo hdparm -Y /dev/sda
/dev/sda:
issuing sleep command
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
sudo hdparm -C /dev/sda
/dev/sda:
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
drive state is: standby
Code: Select all
sudo sg_start --stop /dev/sda
Code: Select all
sudo sdparm --command=stop /dev/sda
Code: Select all
sudo sg_start --stop /dev/hdc
Check this out: http://www.botcyb.org/2009/04/making-in ... -down.htmlmcgyver83 wrote:My usb hdd is mounted through fstab, my problem is that it only spindown when the command is run and not after x seconds
I reckon you're going to have to pull the source code and compile it.mcgyver83 wrote:I had to restart from scratch and now I'm not able to install sdparm from apt-get (raspbian jessie).
Any hints?