So, there’s this very well documented bug with all versions of Ubuntu where the network connection is dropped before any set Samba shares are unmounted. This results in annoying “CIFS error 50” type timeout issues.
It’s unbelievable that this still isn’t fixed in Jaunty, and I’ve never really got the workarounds working. But the most common is to move the unmounting command up the stack of priorities when shutting down or suspending. To do this, as The World shows:
ln -s /etc/init.d/umountnfs.sh /etc/rc0.d/K15umountnfs.sh
ln -s /etc/init.d/umountnfs.sh /etc/rc6.d/K15umountnfs.sh