I do have a problem with conky's if_mounted function to check if a device is mounted or not.
I have installed the package autofs, which automates the mount-process.
autofs is a program for automatically mounting directories on an as-needed basis. Auto-mounts are mounted only as they are accessed, and are unmounted after a period of inactivity.
http://help.ubuntu.com/community/Autofs
In conky I use a template to check free space, only if a device is mounted:
Code:
template0 ${if_mounted \1}${fs_used \1}/${fs_size \1} (${fs_used_perc \1}%)${else}\1 not mounted${endif}
The problem:
Conky permanently checks for fs_used and autofs will not unmount the disks anymore.
Has anyone a solution to get around?
Thanks
Bookmarks