Thursday, January 15, 2009

Ubuntu shutdown problem - CIFS VFS related

For the past few weeks, my laptop (running Ubuntu) would not shut down completely. It would say "CIFS VFS: Server not available". It was pretty annoying, but I thought it was a random message, and might go away with one of the updates. However, it turns out that the problem was due to the conflict in the order of shutting down of the network manager and samba shares. Samba shares need to be unmounted before network manager is shutdown for obvious reasons. Here's a blog entry with a more detailed solution:
http://blog.avirtualhome.com/2008/03/10/ubuntu-shutdown-problem-cifs-related/

* Update *
This solution stopped working once I upgraded to Jaunty (9.04). Here's the solution which works now:
  • Edit /etc/gdm/PostSession/Default (using sudo)
  • For each Samba mount, add this line to the top: umount to the top (right after the line: #!/bin/sh.
I read this from this thread: http://ubuntuforums.org/showthread.php?t=288534, which says that just adding /etc/init.d/umountnfs.sh should work, but it did not work for me. Adding individual umounts did.

No comments: