Unmounting and remounting an external disk on reconnect
– on dismount: force unmount and remove the mount point, whatever process uses it
– on mount: mount it again
Is dismount like this possible without crashing my server?
I tried to write udev usb mount rules plus shell scripts (on add and remove), but:
– for remove/dismount, a umount -l does not work and the syslog just log disk errors whenever I try to to access the drive
– for add, mounting doesn’t seem to work from the shell script. Yet after typing the command manually the mount occurs properly.
Is there a better strategy for this?
You might also like
Hello all, When I plug in my Dualshock 4 controller the audio is automatically routed to its 3.5mm port, meaning I have to go to “settings > sound > output
Ubuntu 20.04 runs perfectly out of the box on my older HP desktop. I had problems with the new HP 15 laptop though and that wasn’t unexpected being it’s pretty
Hello Ladies n Gents, I hope you are all surviving though this covid situtation – i see no light at the end of the tunnel. Anyway, only a boring long