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 .
4 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
Post a Comment