An alternative approach to /etc/init.d is using ACPI. Add a file like
/etc/acpi/suspend.d/30-smbfs-umount.sh
<pre>
# Unmount SAMBA shares - open files on these don't survive suspending.
umount -a -l -t smbfs
</pre>
-- inspired from
http://forums.debian.net/viewtopic.php?t=6984&view=next

BTW, acpi calls 65-STOP_SERVICES (for init.d services) after 55-down-
interfaces.sh -- maybe not so nice w.r.t. the server & TCP connection.

I can't comment whether there's anything better to do than umount.

I don't understand why umount is necessary at all -- why can't enough
state be preserved for things like ls -al /mnt/samba/foo, df or pwd?  I
mean, I might not even have open files from Samba (but directories).

Bug affects at least Breezy and Dapper.

-- 
Samba mount point becomes inaccessible after hibernation/suspend
https://launchpad.net/bugs/24864

--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to