Answer the question
In order to leave comments, you need to log in
Automatic remount usb-hdd if it fell off?
Good day to all! So I have a Raspberry pi4
Linux raspberrypi 5.4.72-v7l+ #1356 SMP Thu Oct 22 13:57:51 BST 2020 armv7l GNU/Linux
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
proc /proc proc defaults 0 0
PARTUUID=79cd0320-01 /boot vfat defaults 0 2
PARTUUID=79cd0320-02 / ext4 defaults,noatime 0 1
#HDD 1Tb
UUID=2e328abe-05aa-4a48-a033 /mnt/1tb ext4 defaults,auto ,users,rw,nofail,x-systemd.device-timeout=30 0 0
Answer the question
In order to leave comments, you need to log in
mount | grep 1tb || mount /mnt/1tb
add this to cron or whatever; the meaning of the command is obscenely simple: if not mounted, then mount.
And with what frequency it is checked - your business.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question