Ivman

The goal of this article is to setup ivman to automount devices.

Kernel configuration
Ivman uses pmount. If you have an older pmount version than 0.9.19, pmount uses sysfsutils, which is broken and relies on the deprecated CONFIG_SYSFS_DEPRECATED_V2 option in your kernel. So you have to either update pmount to version 0.9.19 or later or enable the deprecated kernel option, recompile, install and reboot your kernel.

Installation
As easy as:

You will likely want to start ivman at startup, so:

If you want to start it directly:

Configuration
A basic volume management configuration is already in place in. You may want to tweak this a little bit.

ivman user
By default, ivman runs as the ivman user. If you want to unmount volumes as nonroot, you will need to tell ivman to run as that user instead. Edit (yeah, ivman uses XML files. it's bad, but we'll have to live with it):

Where jack is the user who will unmount volumes. Add jack to the plugdev group:

Now, if jack wishes to unmount, which ivman mounted at , he would:

Different mount command
If you have to add some special options to the mount command, you can modify these configuration lines:

You could, for example, configure the mountcommand to mount using, which will allow all users to mount and unmount the volume.

Execute programs
Open an mp3 player with mc when its plugged in:

Open your camera with mc when it's plugged in:

This pops up a little thing saying what device is plugged in.

Mounting devices to be unmountable by normal users (ivman 0.5.x ONLY!)
When you plug in your USB key, a root instance of ivman mounts it automatically, but you can't unmount it unless you are root. This is a work around to solve it, although it tells HAL to mount all mass storage devices with the "users" option, which may be something you don't want.

Create a file called whatever.fdi in with the following contents:

For more info, read the HAL Specifications.

Mount devices with label name
Add the following configuration and the devices will be mounted automatically to /media/,if hal provides the label name

More useful information can be found at http://forums.gentoo.org/viewtopic-t-443437.html

USB devices don't get detected
HAL may require coldplug added to the boot runlevel in order to properly detect USB devices.

If you're having trouble getting the per-user ivman to automount your USB flash drive, you might need to add utf-8 support to your kernel.

HOWTO Ivman