CIFS: Unmount CIFS shares before shutting down the network
There is a very nasty bug in Ubuntu, which occurs, if you use NetworkManager and have any active CIFS share while shutting down your system. If you do that, you'll experience a timeout while shutting down, lengthening it by ~30 seconds per share. You'll also get the message CIFS VFS: Server not responding.
There is a bug entry on launchpad, but it is not yet fixed. Fortunately, there is an easy workaround.
There is a very nasty bug in Ubuntu, which occurs, if you use NetworkManager and have any active CIFS share while shutting down your system. If you do that, you'll experience a timeout while shutting down, lengthening it by ~30 seconds per share. You'll also get the message CIFS VFS: Server not responding.
There is a bug entry on launchpad, but it is not yet fixed. Fortunately, there is an easy workaround.
Here are my simplified instructions:
cd /etc/init.dThat ought to take care of it.
sudo wget http://www.jejik.com/files/examples/umountcifs
sudo chmod ugo+x umountcifs
sudo update-rc.d umountcifs stop 02 0 6 .
6 comments:
This solved it! Thanks, now my mythtv box shuts down without idling forever.
Thanks for this. This seems to have solved the problem for my eee with Ubuntu on shutdown. I still get this when I do a suspend however. I suspect that the fix only runs on shutdown, but I don't know enough about Linux/Ubuntu to activate it for suspend, and I imagine that I could really screw things up. Any ideas? Thanks.
Thank you so much for this tip, my HTPC no longer hangs while trying to shut down :).
Fantastic, thank you. 11.04 now shuts down in 10 seconds
Nearly 5 years later, and I still found your solution useful. I did make a minor modification--I added wicd to the "# Required-Stop:" comment header to force update-rc.d to shut down wicd after this ran. If one uses Network Manager, one could do the same thing by adding network-manager to the same comment header.
Anyway, this got rid of the insane 5-minute timeout that occurred every time I shut down or rebooted Debian Wheezy. Thank-you.
It's 2016, Ubuntu 14.04 LTS and I still find it useful. Thank you so, so much.
Post a Comment