thanks a lot!
thanks a lot!
max.durden, this thread has been linked to on my howto for cifs here: http://ubuntuforums.org/showthread.php?t=288534
thanks so much for posting a fix for this, i had been unable to find a working solution.
1) Samba server howto | 2) mount windows/samba shares with CIFS + unicode | 3) best FTP server howto
4) NFS server/client howto | 5) Easy cross-platform LAN file sharing with FTP
6) Fix samba browsing!!! | 7) Fix Pulse audio
Happy Ubunting!
max thanks so much for posting this fix!
I am such a linux newbie - having never even logged into a linux machine until I decided to install Ubuntu over my old Win2kPro installation.
the community support is unbelievable and in the past few weeks with the help of users like yourself I have been able to transform into a competent user.
This successfully removed my "no response for cmd 114 mid 11" error on shutdown/reboot.
Thanks again!
Many thanks - finally the problem is solved.
The script has a problem with smb/cifs-shares that contain spaces... For instance the shares on my windows-machine are called "my music" and "movies" respecively. This makes 'cut -d\ -F3' cut in different places on the two lines (mountpoint on the second, but only "on" on the first, since "music" is seen as the second field.)
I have resolved this by renaming the share on my windows-computer, but the script should still be made aware of this.
Last edited by Korgmatose; July 3rd, 2007 at 10:49 AM.
I have written a different init script based off /etc/init.d/sendsigs and /etc/init.d/umountnfs.sh that has two improvements over the script from the original poster:
1) It does not use `cut` so shares with spaces in them are not a problem.
2) Before unmounting the cifs shares, the script first asks all processes that are still using the shares to exit. If those processes don't exit then they will be forcefully terminated. This ensures that the unmount won't fail because there are still open files on it.
Use it in the same way as the script from the original poster: unzip the attachment and save it's content as /etc/init.d/umountcifs. Then symlink it to /etc/rc0.d/KXXumountcifs where XX is any number lower than 20 (because at K20 udev and portmap and all get shut down and unmounting cifs shares doesn't work after that).
Hi--
Many thanks. This was stalling my shutdown on 7.04 for about 2 minutes, and this seems to work.
BTW, don't use these commands:Instead, use these for the second script to work:cd /etc/rc0.d
sudo ln -s /etc/init.d/mountcifs K02mountcifs
cd /etc/rc6.d
sudo ln -s /etc/init.d/mountcifs K02mountcifs
I suspect that's why it did not work for me the first time....Code:cd /etc/rc0.d sudo ln -s /etc/init.d/umountcifs K02umountcifs cd /etc/rc6.d sudo ln -s /etc/init.d/umountcifs K02umountcifs
Oh, the update-rc.d did not work for me.
Last edited by dgermann; July 13th, 2007 at 03:24 AM.
:- Doug.
Does this script unmount cifs shares at logout, or only at shutdown/reboot?
Phil
Bookmarks