Ubuntu: Difference between revisions

From miki
Jump to navigation Jump to search
 
Line 12: Line 12:


This is apparently a bug that is creeping in Ubuntu since a long time ago. Basically there are 2 possible fixes (as in [http://ubuntuforums.org/showthread.php?t=736649], [http://ubuntuforums.org/showthread.php?t=293513], [http://whereofwecannotspeak.wordpress.com/2007/12/25/unmount-samba-filesystems-before-shutdown-or-reboot/]):
This is apparently a bug that is creeping in Ubuntu since a long time ago. Basically there are 2 possible fixes (as in [http://ubuntuforums.org/showthread.php?t=736649], [http://ubuntuforums.org/showthread.php?t=293513], [http://whereofwecannotspeak.wordpress.com/2007/12/25/unmount-samba-filesystems-before-shutdown-or-reboot/]):
<source lang="bash">
sudo ln -s /etc/init.d/umountnfs.sh /etc/rc0.d/K15umountnfs.sh
sudo ln -s /etc/init.d/umountnfs.sh /etc/rc6.d/K15umountnfs.sh
</source>


and as proposed by Daniel Ellis here [[https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/42121]]:
The one I use, proposed by Daniel Ellis here [[https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/42121]]:


<source lang="bash">
<source lang="bash">
Line 24: Line 20:
sudo mv /etc/rc6.d/S31umountnfs.sh /etc/rc6.d/K31umountnfs.sh
sudo mv /etc/rc6.d/S31umountnfs.sh /etc/rc6.d/K31umountnfs.sh
sudo mv /etc/rc6.d/S40umountfs /etc/rc6.d/K40umountfs
sudo mv /etc/rc6.d/S40umountfs /etc/rc6.d/K40umountfs
</source>

Another one (not tried yet):
<source lang="bash">
sudo ln -s /etc/init.d/umountnfs.sh /etc/rc0.d/K15umountnfs.sh
sudo ln -s /etc/init.d/umountnfs.sh /etc/rc6.d/K15umountnfs.sh
</source>
</source>

Revision as of 22:02, 19 October 2009

This page is dedicated to the Ubuntu Linux distribution or derivatives

Troubleshoot

CIFS shares not properly unmounted during shutdown

When shutting down the PC with Samba (CIFS) shares mounted, the shutdown sequence hangs with the following error messages:

CIFS VFS: server not responding
CIFS VFS: no response for cmd 50 mid xxx 

This is apparently a bug that is creeping in Ubuntu since a long time ago. Basically there are 2 possible fixes (as in [1], [2], [3]):

The one I use, proposed by Daniel Ellis here [[4]]:

sudo mv /etc/rc0.d/S31umountnfs.sh /etc/rc0.d/K31umountnfs.sh
sudo mv /etc/rc0.d/S40umountfs /etc/rc0.d/K40umountfs
sudo mv /etc/rc6.d/S31umountnfs.sh /etc/rc6.d/K31umountnfs.sh
sudo mv /etc/rc6.d/S40umountfs /etc/rc6.d/K40umountfs

Another one (not tried yet):

sudo ln -s /etc/init.d/umountnfs.sh /etc/rc0.d/K15umountnfs.sh
sudo ln -s /etc/init.d/umountnfs.sh /etc/rc6.d/K15umountnfs.sh