Sam, we could test your theory in a way to bring down mediacenter, run hdparm and wait for spin down.
If it spins down, you theory is correct.
I will do it right now, and report back results here.
My disk is WD Green 4TB as well.
I have put it back on PI 3 for comparison, and I found that spin down is not working on it.
Looks like I have lost this feature with some osmc update. I am sure it worked in the past.
on PI 3 the disc is mounted as:
/dev/sda1 on /mnt/wde4tb type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
root@rpi3:/mnt# hdparm -B /dev/sda1
/dev/sda1:
APM_level = not supported
root@rpi3:/mnt# hdparm -S 2 /dev/sda1
/dev/sda1:
setting standby to 2 (10 seconds)
not spinning down
On PI 4 it is mounted as:
/dev/sda1 on /mnt/wde4tb type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
On PI 3 or PI 4, lsof doesn’t return anything:
root@rpi4:/home/osmc# lsof | grep wde4tb
root@rpi4:/home/osmc#
Looks like after some osmc upgrade from the past I don’t have this option anymore.
Well, I have found the solution for the problem.
Long time ago, in year 2016, I had a similar discussion in this forum.
In mean time, I thought that osmc has solved this problem for us, so I forgot about it.
Now when I installed PI 4, as the disc was always on, looks like I was wrong.
As I proof that everything works well, I have created a cron script that reads disk state (hdparm -C /dev/sdx) every 5 minutes and puts it into the log. Here is the output:
root@rpi4:~# tail -f hdparm.log | grep "drive state is"
drive state is: standby
drive state is: standby
drive state is: standby
drive state is: active/idle
drive state is: active/idle
drive state is: active/idle
drive state is: active/idle
drive state is: active/idle
drive state is: active/idle
drive state is: standby
drive state is: standby
As you can see there are 6 (5*6=30 min) active/idle, and than disk goes into standby.
You mean from kodi osmc add-on?
At the moment I don’t have access to the TV, but I have an access ot PI over ssh.
Please, give to me a shell command whose output you heed.