Wish i never started this im now lost
Works perfect with Reboot and Power_Off; unmouts all drives before the power is cut off.
Is the latest version still unde this link?
https://pastebin.com/raw/ypmbcrEu
Yes, I edited script on same address.
Nice & Thanks.
Maybe good idea to pin this, or commit to CE
I think that several issues here are caused by corrupted data/fs.
Is the emmc also ejected before powerdown by CE/BL? This is a managed NAND, which may also have background maintenance running, which does not like brownout.
EDIT: both linux Kernel drivers support Power off notification, just checked. Hopefully the host notifies the mmc driver…
Is it safe to use it, when you have /storage partition on USB? Not sure about shutdown actions after halt service…
no, it’s not a good idea.
Working perfectly for me:) Thank You!
Helped me. Thanks for posting
On my GS-king x, remove/eject hdd safely does not work. Is it because I use transmission client but i tried an and stop it with code:/storage/.opt/etc/init.d/S88transmission stop.
But still hdd can’t eject even after i stop transmission.
I also use it as plex server via linux docker , i disabled that via addons but still cant removed hdd safely.
Don’t know if log will show the issue but any help will be appreciated, thanks.
Eject from ssh command line and it will show you an error.
What’s the Cmd please? Thanks.
Or just eject from Kodi and then in SSH console type
journalctl -l | paste
Hi how do i eject from kodi?
And after i eject from kodi use that cmd, right?
Journalctrl gave this:https://paste.coreelec.org/ComplexObsessed
Dec 15 21:59:06 CoreELEC kodi.sh[12153]: umount: /var/media/android1: target is busy.
Dec 15 21:59:10 CoreELEC kodi.sh[12156]: umount: /var/media/Android2a: target is busy.
Dec 15 21:59:14 CoreELEC kodi.sh[12159]: umount: /var/media/Android2b: target is busy.
Kodi is taking some files open and partition can’t be unmounted.
Maybe this command will tell you which files are open
lsof | grep "/var/media/android"
That didn’t show anything:
CoreELEC:~ # lsof | grep “/var/media/android”
CoreELEC:~ #`
Hi @vpeter & devs please Still need help with this, is damaging hdd.
I’m sorry but you will have to figure out this yourself.
I assume this /var/media/Android
mounts comes from 2 HDD’s installed. Make fresh CE install without any extra service running to see if it helps.