One hard drive not spinning down

Hi, I’m VERY new to OSMC and the Raspberry Pi in general so if you have any instructions to help me and my problem, I would be incredibly thankful but also I’d need a whole lot of help with specifics.

I have two external hard drives plugged into my Raspberry Pi 2 Model B, and both work fine within OSMC. I can watch video and all that. But when I check after an hour or so of inactivity, one drive is cool and not vibrating at all, which I take to mean it has properly spun down. The other drive, however, is warm, vibrating and apparently still spinning.

I’m not sure how to make this drive spin down. Any help would be appreciated.

Known bug should be fixed in RC2

S

Hi!

I`m on RC2 on my pi2, and unfortunately my external HD doesn’t spin down.

[quote]Apr 18 08:47:01 osmc udisks-glue[289]: Device file /dev/sda2 inserted
Apr 18 08:47:01 osmc connmand[211]: Skipping disconnect of carrier, network is connecting.
Apr 18 08:47:02 osmc udisks-glue[289]: Device file /dev/sda5 inserted
Apr 18 08:47:02 osmc udisks-glue[289]: Trying to automount /dev/sda5…
Apr 18 08:47:02 osmc sudo[329]: osmc : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/sbin/hdparm -S 240 /dev/sda5
Apr 18 08:47:02 osmc sudo[329]: pam_unix(sudo:session): session opened for user root by (uid=0)
Apr 18 08:47:02 osmc udisks-glue[289]: HDIO_DRIVE_CMD(setidle) failed: Invalid argument
Apr 18 08:47:02 osmc sudo[329]: pam_unix(sudo:session): session closed for user root
Apr 18 08:47:02 osmc udisks-glue[289]: /dev/sda5:
Apr 18 08:47:02 osmc udisks-glue[289]: setting standby to 240 (20 minutes)[/quote]

seems like udisk-glue is unable to set the spin down time?

It is a 1.5TB sata drive in a ‘Sharkoon Rapid-Case USB 3.0 - Storage enclosure - 3.5" - SATA’. just in case it matters.

udisks info gives:

[quote]osmc@osmc:~$ udisks --show-info /dev/sdb1
Showing information for /org/freedesktop/UDisks/devices/sdb1
native-path: /sys/devices/platform/bcm2708_usb/usb1/1-1/1-1.4/1-1.4:1.0/host1/target1:0:0/1:0:0:0/block/sdb/sdb1
device: 8:17
device-file: /dev/sdb1
presentation: /dev/sdb1
by-id: /dev/disk/by-id/ata-SAMSUNG_HD154UI_S1Y6J90S810642-part1
by-id: /dev/disk/by-id/wwn-0x50024e9200e30817-part1
by-id: /dev/disk/by-uuid/D628029528027531
by-path: /dev/disk/by-path/platform-bcm2708_usb-usb-0:1.4:1.0-scsi-0:0:0:0-part1
detected at: Sat Apr 18 08:47:07 2015
system internal: 0
removable: 0
has media: 1 (detected at Sat Apr 18 08:47:07 2015)
detects change: 0
detection by polling: 0
detection inhibitable: 0
detection inhibited: 0
is read only: 0
is mounted: 1
mount paths: /media/Movies
mounted by uid: 1000
presentation hide: 0
presentation nopolicy: 0
presentation name:
presentation icon:
automount hint:
size: 1500299395072
block size: 512
job underway: no
usage: filesystem
type: ntfs
version:
uuid: D628029528027531
label: Movies
partition:
part of: /org/freedesktop/UDisks/devices/sdb
scheme: mbr
number: 1
type: 0x07
flags:
offset: 1048576
alignment offset: 0
size: 1500299395072
label:
uuid:[/quote]

when I try to set the spindown time I get:

Logfile: http://paste.osmc.io/ficejalele

This means that your drive does not support the spin down command. Not all drives do, depending on the USB to SATA controller that they are connected through.

/dev/sdb1 is not a drive, it is a partition. Try /dev/sdb instead - which refers to the drive.

I think there is a bug too, where udisks tries to set spindown time on a partition rather than the actual disk itself

S