Re: how to: automatically umount cifs partitions
Originally Posted by
wyley.r
The following two commands should take care of unmounting Samba shares and other virtual filesystems before a shutdown or reboot. They must be run as root; prefix them with "sudo" if you haven't set up your root account:
Code:
ln -s /etc/init.d/umountnfs.sh /etc/rc0.d/K15umountnfs.sh
ln -s /etc/init.d/umountnfs.sh /etc/rc6.d/K15umountnfs.sh
More explanation can be found here:
Unmount Samba filesystems before shutdown or reboot.
Hopefully, this will avoid the need to download and install a separate script, as some other people have suggested. All the tools you need are already built into the Debian/Ubuntu init system.
In Gutsy at least, there are already links to these files in these directories, they just start with S31 rather than K15. Tidiest option is just to change their names. I did it using "gksudo nautilus" and browsing to the directory.
Veloce
Ubuntu 9.04 64bit on Dell Vostro 1510, Core2 Duo T8100, Nvidia 8400M , Intel 1395 Wireless.
OK: Wireless, kvm, Canon irc2880, Synergy.
Bookmarks