I'm running LibreELEC 19.5 on my raspberry pi 3.
When I shutdown/reboot I get errors:
Failed to unmount /flash: Device or resource busy
systemd-shutdown[1]: Failed to finalize file systems, loop devices, ignoring.
It seems to only do this when my main 1TB hard drive is connected. If there is no drive attached it's fine, and when I connected another usb drive it didn't cause errors either.
Because it says Failed to unmount /flash, I thought this was probably to do with the fact I've added support for an IR controller. In doing so, I had to mount -o remount,rw /flash, edit the config.txt and then mount -o remount,ro /flash. However I took another identical microSD card and started fresh with a new image of LibreELEC without configuring the IR, using only a usb keyboard, and the same errors happened when I shutdown.
When I try to unmount the hard drive with umount /dev/sda1 it still produces the errors until I physically pull it out of the usb port. Then it shuts down ok.
If I run df -h, I can see that /dev/mmcblk0p1 is mounted on /flash. When I try to unmount it, I get umount: can't unmount /flash: Device or resource busy.
What's could be this to not shutdown correctly?