This CIFS issue is back with a vengeance on Natty! I run Mint 11, which is based on Natty. With past Ubuntu versions, having a CIFS network share connected via wireless when shutting down or restarting the computer would hang the shutdown for a minute or two - annoying, but livable (sort of). However, with Natty, the shutdown hangs indefinitely, forcing use of the power button. I tried all the workarounds listed in that link you mentioned to no avail. Finally, as a last-ditch effort, I added a line early in my /etc/init.d/umountnfs.sh file to explicitly unmount my network share, as follows:
Code:
do_stop () {
# Write a reboot record to /var/log/wtmp before unmounting
halt -w
# Remove bootclean flag files (precaution against symlink attacks)
rm -f /tmp/.clean /var/lock/.clean /var/run/.clean
#
# Make list of points to unmount in reverse order of their creation
#
exec 9<&0 </etc/mtab
umount //192.168.1.100/MyNET\ Shares/
DIRS=""
...
The result? Nearly instantaneous shutdowns now!
I found, through insertion of logger and echo statements throughout umountnfs.sh, that during shutdown through the Gnome GUI, the script never finishes executing. It hangs somewhere shortly after evaluating /etc/mtab. Seems like the SMB/CIFS situation in Ubuntu is getting worse and worse...
Bookmarks