[olug] Network drives on a laptop?

Luke -Jr luke at dashjr.org
Tue Jan 8 02:54:56 UTC 2008


On Monday 07 January 2008, Christopher Cashell wrote:
> Yes, that's correct.  It acts by trying to prevent interrupted
> connections by taking down connections that aren't actively in use.
> If you leave a program running that is accessing a file on the remote
> share, then AutoFS won't unmount the connection.  Unfortunately, short
> of killing the process and then unmounting remote shares when the
> laptop sleeps, you're not going to find much that will take care of
> this problem (especially if you're concerned with data loss, which
> will occur in the above situation).  This is primarily a limitation on
> the inability to unmount a disk that's in use.

Why would there be data loss in the above situation? Tail is read-only would 
only have a problem with this situation if the logfile were truncated or 
modified in a non-appending way during the downtime.

> And, if you can't unmount it, then you're back where you started, with
> stale connections that may or may not work after your laptop wakes up.
>  You're pretty much dependent on the robustness of NFS/CIFS and their
> implementations, and hoping that they handle reconnecting or timing
> out gracefully (for NFS, using TCP can help with this a little bit).

I've never seen either reconnect or timeout gracefully.




More information about the OLUG mailing list