Automatically unmount cifs (Common Internet File System) partitions
Sponsored Link
(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