Hi, I have a 4TB HDD attached to my RPI4 running LibreElec (nightlies). It is attached via a powered 3.0 USB hub so doesnt draw power from the RPi. Occasionally the drive is dismounted and stops functioning so I take it out and do an error check and defrag the heavily fragmented drive on my PC. So apparently there is a linux app called e4defrag which could defrag the drive on a daily basis. Is this possible via an app or addon? Any thoughts?
Thanks
Chook.