HD spin down broken since November update?

Hi! Since the November update my external hd didn’t spin down anymore. Is there any chance something was changed intendedly or did I miss something?

So I added this to my /etc/hdparm.conf and it’s working again:
/dev/sdb {
write_cache = on
spindown_time = 120
}

Edit: on a Raspberry Pi B+

We have not changed anything related to hard drive spin down in the November update that I am aware of.

We don’t use /etc/hdparm.conf (it is just a default conf file) we perform hard drive spin down in udisks-glue:

The last change to that file was September 11th…

Is your drive automatically mounted or do you have an fstab entry for it ? If you use fstab, udisks-glue will not automatically run hdparm on it.

Posting your system journal would be helpful to see whether udisks-glue is running hdparm on your drive or not.

Thanks for the clarification! I didn’t enroll any fstab entries, this drive was mounted automatically.
It seems like journal is deactivated by default, I don’t know how to activate it.

Don’t know what you’re talking about there. The system journal is not deactivated by default. To view it:

sudo journalctl

Forgot to use sudo command :frowning:

Dez 02 06:56:43 osmc kernel: sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
Dez 02 06:56:43 osmc kernel: sd 1:0:0:0: [sdb] Write Protect is off
Dez 02 06:56:43 osmc kernel: sd 1:0:0:0: [sdb] Mode Sense: 28 00 00 00
Dez 02 06:56:43 osmc kernel: sd 1:0:0:0: [sdb] No Caching mode page found
Dez 02 06:56:43 osmc kernel: sd 1:0:0:0: [sdb] Assuming drive cache: write through
Dez 02 06:56:43 osmc kernel:  sdb: sdb1 sdb2
Dez 02 06:56:43 osmc kernel: sd 1:0:0:0: [sdb] Attached SCSI disk
 ...
Dez 02 06:56:44 osmc hdparm[191]: Setting parameters of disc:  /dev/sdb.
 ...
Dez 02 06:56:54 osmc udisks-glue[344]: Device file /dev/sda inserted
Dez 02 06:56:54 osmc udisks-glue[344]: Device file /dev/sdb1 inserted
Dez 02 06:56:54 osmc udisks-glue[344]: Trying to automount /dev/sdb1...
Dez 02 06:56:55 osmc kernel: survey done event(37) band:0 for wlan0
Dez 02 06:56:55 osmc kernel: rtw_select_and_join_from_scanned_queue: return _FAIL(candidate == NULL)
Dez 02 06:56:55 osmc kernel: try_to_join, but select scanning queue fail, to_roaming:0
Dez 02 06:56:55 osmc ntfs-3g[443]: Version 2014.2.15AR.2 integrated FUSE 28
Dez 02 06:56:55 osmc ntfs-3g[443]: Mounted /dev/sdb1 (Read-Write, label "Volume", NTFS 3.1)
Dez 02 06:56:55 osmc ntfs-3g[443]: Cmdline options: rw,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177,fmask=0111,dmask=0000,uhelper=udisks
Dez 02 06:56:55 osmc ntfs-3g[443]: Mount options: rw,nodev,nosuid,uhelper=udisks,allow_other,nonempty,relatime,default_permissions,fsname=/dev/sdb1,blkdev,blksize=4096
Dez 02 06:56:55 osmc ntfs-3g[443]: Global ownership and permissions enforced, configuration type 7
Dez 02 06:56:55 osmc wpa_supplicant[401]: WPS: Converting push_button to virtual_push_button for WPS 2.0 compliance
Dez 02 06:56:55 osmc udisks-glue[344]: Successfully automounted /dev/sdb1 at /media/Volume
Dez 02 06:56:55 osmc sudo[431]: osmc : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/sbin/hdparm -S 240 /dev/mmcblk0
Dez 02 06:56:55 osmc sudo[437]: osmc : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/sbin/hdparm -S 240 /dev/sdb
Dez 02 06:56:55 osmc sudo[437]: pam_unix(sudo:session): session opened for user root by (uid=0)
Dez 02 06:56:55 osmc sudo[431]: pam_unix(sudo:session): session opened for user root by (uid=0)
Dez 02 06:56:55 osmc udisks-glue[344]: Device file /dev/sdb2 inserted
Dez 02 06:56:55 osmc udisks-glue[344]: HDIO_DRIVE_CMD(setidle) failed: Invalid argument
Dez 02 06:56:55 osmc udisks-glue[344]: Trying to automount /dev/sdb2...
Dez 02 06:56:55 osmc sudo[437]: pam_unix(sudo:session): session closed for user root
Dez 02 06:56:55 osmc udisks-glue[344]: /dev/sdb:`
Dez 02 06:56:55 osmc udisks-glue[344]: setting standby to 240 (20 minutes)
Dez 02 06:56:55 osmc sudo[431]: pam_unix(sudo:session): session closed for user root
...
Dez 02 06:57:00 osmc ntfs-3g[455]: Version 2014.2.15AR.2 integrated FUSE 28
Dez 02 06:57:00 osmc ntfs-3g[455]: Mounted /dev/sdb2 (Read-Write, label "", NTFS 3.1)
Dez 02 06:57:00 osmc ntfs-3g[455]: Cmdline options: rw,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177,fmask=0111,dmask=0000,uhelper=udisks
Dez 02 06:57:00 osmc ntfs-3g[455]: Mount options: rw,nodev,nosuid,uhelper=udisks,allow_other,nonempty,relatime,default_permissions,fsname=/dev/sdb2,blkdev,blksize=4096
Dez 02 06:57:00 osmc ntfs-3g[455]: Global ownership and permissions enforced, configuration type 7
Dez 02 06:57:00 osmc udisks-glue[344]: Successfully automounted /dev/sdb2 at /media/01D0AE7114EFC620
Dez 02 06:57:00 osmc udisks-glue[344]: Device file /dev/sdb1 mounted at /media/Volume
Dez 02 06:57:00 osmc udisks-glue[344]: Device file /dev/sdb2 mounted at /media/01D0AE7114EFC620
Dez 02 06:57:01 osmc sudo[471]: osmc : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/net usershare add Volume /media/Volume Auto-mount Volume osmc\osmc:f
Dez 02 06:57:01 osmc sudo[471]: pam_unix(sudo:session): session opened for user root by (uid=0)
Dez 02 06:57:01 osmc sudo[474]: osmc : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/net usershare add 01D0AE7114EFC620 /media/01D0AE7114EFC620 Auto-mount Volume osmc\osmc:f
Dez 02 06:57:01 osmc sudo[474]: pam_unix(sudo:session): session opened for user root by (uid=0)

This command is being run automatically, so as far as I can see, your hard drive should be spinning down without you manually adding anything. Note that the default time is significantly longer than yours, and the argument to hdparm is not in minutes or seconds!

COMMAND=/sbin/hdparm -S 240 /dev/sdb