Shutdown reboot hangs after cifs mount
Tofloor
poster avatar
bdika
deepin
2016-04-02 18:21
Author
Edited by bdika at 2016-4-2 10:21

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

Reply Favorite View the author
All Replies
dance707
deepin
2016-04-02 23:57
#1
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
Reply View the author
bdika
deepin
2016-04-03 12:44
#2
Hi dance707

Thanks for the reply.

Can you supply me with a little more direction of     "I just used the /etc/samba/smb.conf method of mounting shares"  . I'm  having touble implementing it. Do I still use fstab entries? If not how do I mount on boot?

Thank you.

Bill Dika
Reply View the author
dance707
deepin
2016-04-03 13:39
#3
https://bbs.deepin.org/post/30903
Hi dance707

Thanks for the reply.

Hi Bill, Normally I only mount physical drives or NFS shares in fstab. I have seen methods of mounting Samba shares in fstab with out using the x-systemd.automount method. I am not a Samba user and don't remember if they auto mount or not using the more traditional method. And of course you will have to completely remove your current method in order for a traditional method to work. You can read the Debian Wiki for more information but seems out of date, and also other Wiki's in other distros for more information. I basically used the howtoforge link but did not follow all the instructions when I tested.
https://wiki.debian.org/SambaServerSimple
https://www.howtoforge.com/tutorial/debian-samba-server/
Reply View the author
New Thread

Popular Events

More
国际排名
WHLUG