Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fast unmount of cifs at shutdown
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1361
Location: Montréal

PostPosted: Mon Jan 16, 2017 4:09 pm    Post subject: Fast unmount of cifs at shutdown Reply with quote

Unless I unmount manually the cifs filesystems before shutdown, there is always a delay who can be long at shutdown when come the time to unmount the network filesystems. Is the solution to put the command
Code:
umount -a -t cifs

in a shutdown script enough efficient?
_________________
Paul
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6972
Location: Saint Amant, Acadiana

PostPosted: Mon Jan 16, 2017 4:29 pm    Post subject: Reply with quote

Not sure if autofs can handle CIFS, but if it can it would be the solution.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1361
Location: Montréal

PostPosted: Mon Jan 16, 2017 11:31 pm    Post subject: Reply with quote

Thank's Jaglover for the answer,

I effectively use Autofs. I can set it to unmount cifs after a very short period of time so to cifs fylesystems are unmounted at shutdown. The drawback is that it have to be mount at every access with a delay to find the network share.

There is the possibility to use /etc/fstab to mount and unmount network shares. Systemd to the job too. I will test those methods.
_________________
Paul
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum