I am using a Seagate 8 TB Backup Plus Hub USB 3.0 HDD Connected directly to the usb ports.
When using this on my pc, if it is not accessed in a while, or i turn the pc off it quietly goes into a sleep mode where the light blinks and it spins down.
On the N2 As soon as i suspend it or shut down, I get a loud CLUNK! from the drive as if power is being directly pulled, does not sound good for the drive.
Ive enabled keep usb power option in config file, but then it just spins forever and never goes to sleep?
Firs, download Seagate disk utility with which you can change sleep/spin down time directly in disk’s firmware. Then it will go to sleep at set time on any OS no matter if it’s powered.
I do this for all my USB disks and set time to 10min.
If you cannot for any reason set this in disk’s firmware, then you can set the spin down interval in CoreElec via autostart.sh.
Read posts from this one on
Oh yes ive tried the seagate utility in the past, but as soon as power is lost to the drive it reverts back to its original setting, not sure if its supposed to but that does seem rather pointless.
Ill try it again, will also take a look at the other option thank you.
Just an update on this. I managed to change the sleep time with Seagate dashboard. But the drive must be in its original Caddy. Otherwise it’s recognised bit no options can be set.
This is now working 100%. Shuts down after 15 mins every single time. Unlike the hdparam thing where it wasb50-50.
I got tired of hearing my hdd go “clunk” everytime I shut the N2 down and finally figured out how to safetly remove it before shutting down. Simply stop playing a video or whatever and go to settings-files and scroll down to the hdd then push the hamburger button-“safely remove drive” will popup. Push “ok”, the drive will disappear and wait about 15 seconds then the N2 can be safely shut down. Hope this helps someone.
Yes, Kodi does not shutdown hard disks safely before shutting down, or rebooting.
To be on the safe side I always use “Remove safely” (from context menu after long press on the drive icon) and wait 5 seconds after that to shut down or reboot my N2.
Used the same method on all my previous boxes and never had any file corruption on my hard drives…
I really don’t see why hdds can’t be automatically shut down before Coreelec turns off like win10 does? Oh well, it’s really not that hard to do before quitting-just 1 or 2 more remote button presses.
shutdown.sh bash script is called on shutdown: https://wiki.libreelec.tv/autostart.sh
It should be easy to write a script to unmount all devices mounted under /media.
thats nice and easy option there, thanks. I will add umount commands for installations using USB HDD for /storage (as I think USB flashdrives are just fine).
Not sure if HDD shouldnt be handled also for restarts though…