If you're new here, you may want to subscribe to my RSS feed and if you have questions related to your ubuntu system post question to our forums. Thanks for visiting!
(Actually, CIFS is SMB, but this gets tricky to explain, and unless you wandered here by accident, you probably know all this anyway.)
Automatically unmount cifs partitions in the shutdown and reboot sequence of Ubuntu.first you need to download the script located here
uncompress archive and set ‘chmod +x’ on the mountcifs file
sudo cp mountcifs /etc/init.d/
cd /etc/rc0.d
sudo ln -s /etc/init.d/mountcifs K02mountcifs
cd /etc/rc6.d
sudo ln -s /etc/init.d/mountcifs K02mountcifs



