Ubuntu bug with Samba shares unmounting

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

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s