
On 10/07/12 22:06, James Harper wrote:
I'm using autofs to handle automatically unmounting USB disks used for backup. If I set the autofs timeout to 15 or less it works fine, but 16 seems to not automatically unmount in the desired amount of time. It might happen after quite a while but definitely not in 16 seconds.
So I'm thinking that there is some process running that somehow touches the mounted volume every 15 seconds causing autofs to think that the mount is in use... can anyone suggest what that might be?
15 seconds is okay, but the volumes are ext3 and Linux gets unhappy when these are mounted and unmounted too many times so I want a longer time to keep the volumes mounted during idle periods of the backup job to avoid excessive mount/unmount cycles.
I know it's just a workaround, but have you considered running tune2fs -c 0 on the ext3 filesystems? (Or upgrading them to ext4?)