If I moved to EXT4 for my 6TB USB HDD attached to a Dell Optiplex would fsck automatically be run by LibreElec if the HDD failed to mount when booting?
fsck
-
LybsterKodi -
October 26, 2023 at 2:08 PM -
Thread is Unresolved
-
-
Anyone know the answer?
-
No. Only /flash and /storage is checked automatically.
-
It's not the default behaviour but you can drop a udev rule in /storage/.config/udev.rules.d that matches against the partition IDs or drive names and if triggered, runs a bash script to check if the drives have errors, and if yes run fsck against them.
-
Thanks. I shall engage universal translator mode (AKA DuckDuckGo) and see if I can translate to something a poor old Windows user can follow <G>
and I've found my starter for 10 on how to write basic udev rules
-
Additional UDEV rule may lead to race with udevil mount rule. Better extent the systemd udevil unit with a drop-in.
To fsck any ext4 file system (and only ext4 fs's) to mount create with path:
Code: /storage/.config/system.d/[email protected]/fsck.conf[Service] ExecStartPre=-/usr/sbin/fsck -T -M -p -t ext4 %I
Edit: '-' added to ignore error codes
-
Thanks but you obviously missed "a poor old Windows user ". I'll add to my quest on DuckDuckGo and hope my brain doesn't explode.
-
After learning ssh access basics:
Codemkdir -p /storage/.config/system.d/[email protected] nano /storage/.config/system.d/[email protected]/fsck.conf
paste the contents and save.
-
Thanks. Even a Windows user can follow that. I'll have a go after I've got the TV remote working again over HDMI - it just stopped last night. Currently I have all the leads disconnected to allow any random bit that's been set to clear.