minus-squareOwOarchist@pawb.socialtoSelfhosted@lemmy.world•How to auto remount external HDD after power loss to laptop server?linkfedilinkEnglisharrow-up1·6 hours agoThen set up a cron job that periodically tries to read a file on the drive, and if that command fails, then execute sudo mount -a Like, set up a root account cron job to run touch \external_drive\test_file.txt || mount -a at 5-minute intervals. linkfedilink
Then set up a cron job that periodically tries to read a file on the drive, and if that command fails, then execute
sudo mount -aLike, set up a root account cron job to run
touch \external_drive\test_file.txt || mount -aat 5-minute intervals.