dance707
2016-04-02 23:57 deepin
Edited by dance707 at 2016-4-2 01:03
Hi, Welcome to the Deepin Forum. This seems to be a common problem of using the x-systemd.automount method of mounting shares. When I ran a test earlier this year I just used the /etc/samba/smb.conf method of mounting shares. You might want to check some of the other Wiki's as some tend to be more advanced detail then others. To find the correct commands. Here is a link from freedesktop.org that gives some detail on the systemd.mount
https://www.freedesktop.org/soft ... /systemd.mount.html
Hi, Welcome to the Deepin Forum. This seems to be a common problem of using the x-systemd.automount method of mounting shares. When I ran a test earlier this year I just used the /etc/samba/smb.conf method of mounting shares. You might want to check some of the other Wiki's as some tend to be more advanced detail then others. To find the correct commands. Here is a link from freedesktop.org that gives some detail on the systemd.mount
https://www.freedesktop.org/soft ... /systemd.mount.html
Reply Like 0 View the author
This is part of my fstab
//192.168.10.218/Public /home/dad/shared_videos cifs x-systemd.automount,auto,owner,rw,uid=1000,gid=1000,username=dad,password=xxxxxxxxxx,_netdev 0 0
//192.168.10.218/dad/LV_Data /home/dad/LV_Data cifs x-systemd.automount,auto,owner,rw,uid=1000,gid=1000,username=dad,password=xxxxxxxxxx,_netdev 0 0
The cifs shares mount fine and can be used correctly.
However, when I shutdown or reboot the computer hangs. Apparently, this is caused by network manager stopping before the shares have a chance to unmount.
I have searched the internet and tried various systemd custom services and I have tried using lightdm.conf to precede shutdown with an unmount bash script but nothing has worked.
Is there a way to attach a script to the logout button on the doc, so that it runs before bringing up the exit buttons?
Any help would be much appreciated.
Thanks.
Bill Dika