I'm using ubuntu 18.04 and I need to check some logs from windows shares. I mount these shares with this command:
sudo mount -v -t cifs -o username=me,password=pass //network-adr/logs ~/mylocaldir/log
It works fine, except if local network disconnects. And I need to occasionally disconnect my local network. If I do it and don't unmount the directory first, my gnome shell hangs and I need to
ctrl + alt + f3 to reboot the system (or battle the mount, or restart gnome shell).
I tried using options like
hard, but they didn't solved the issue.
Is there a way I can mount these shares without risking crashing my gnome if the network dies?