Hardcore Linux

Anything about Ubuntu, Centos, openSuSe and Fedora

Unmount CIFS before Network Manager stops…

Always having this problem when using network-manager and shutdown or reboot my computer while some CIFS shares still connected. I tried various fixes but still no help for me.  Until I got this link, which works like a charm for me.

Here’s how:

1.  Open a terminal and invoke the following command:

 $> sudo gedit /etc/init/network-manager.conf

2.  Just after the line which contain the work “description”, add the following

pre-stop script
   trap "Caught TERM Signal" TERM
   trap - TERM
end script

3. Restart your system while CIFS still mounted to check if the changes works.

4. Done.

Solution 2:

In case the first solution fails, here’s another way  to fix this:

1.  Open the file /etc/init/network-manager.conf.

2. Look and replace  “stop on stopping dbus” with “stop on stopping umountnfs”

3. Done.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: