Results 1 to 4 of 4

Thread: Conky if_mounted and autofs (automount)

  1. #1
    Join Date
    Apr 2007
    Location
    .at
    Beans
    16
    Distro
    Ubuntu 10.04 Lucid Lynx

    Question Conky if_mounted and autofs (automount)

    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

  2. #2
    dino99's Avatar
    dino99 is offline Ubuntu addict and loving it
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Conky if_mounted and autofs (automount)

    you might have several times packages doing dupe processes, as mountall already deal with mount/umount.

    That conky thread is very documented:
    http://ubuntuforums.org/showthread.php?t=1771033

  3. #3
    Join Date
    Apr 2007
    Location
    .at
    Beans
    16
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Conky if_mounted and autofs (automount)

    mountall can not deal with mount/unmount in my situation, as my external harddisks are not listed in /etc/fstab

  4. #4
    Join Date
    Apr 2007
    Location
    .at
    Beans
    16
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Conky if_mounted and autofs (automount)

    situation: all autofs-disks are unmounted.
    I start conky and autofs mounts the disks. Seems like the "if_mounted" statement is useless, or more likeley, it does some I/O operations and autofs mounts the disks (because of I/O access).
    In my understanding, "if_mounted" should check the output of the "mount" command for the given "mountpoint" - and nothing else.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •