Udiskie is an automatic disk mounting service using [http://www.archlinux.org/packages/?q=udisks udisks]. It can be used for mounting CDs, flash drives, and other media. It is simple to use and requires no configuration.

+

[https://github.com/coldfix/udiskie udiskie] is an automatic disk mounting service using {{Pkg|udisks}}. It can be used for mounting CDs, flash drives, and other media. It is simple to use and requires no configuration.

−

==Installation==

+

== Installation ==

−

You can install Udiskie by using the [http://aur.archlinux.org/packages.php?ID=37279 udiskie] package that is found in the [[AUR]].

−

Start the Udiskie service by adding

+

You can [[pacman|install]] udiskie by using the {{Pkg|udiskie}} package that is found in the [[official repositories]].

+

Start the udiskie service by adding:

udiskie &

udiskie &

Line 11:

Line 11:

to your [[xinitrc]] file, before the [[window manager]] is loaded.

to your [[xinitrc]] file, before the [[window manager]] is loaded.

−

Once Udiskie is running, all removable media will automatically be mounted under <code>/media</code> under a new directory that matches the device name.

+

Once udiskie is running, all removable media will automatically be mounted under {{ic|/media}} under a new directory that matches the device name.

−

−

===Permissions===

−

udiskie requires permission for the <code>org.freedesktop.udisks.filesystem-mount</code> action to be granted through PolicyKit. If you use a display manager that supports ConsoleKit this will be taken care of for you automatically. If you don't, you'll need to set up consolekit to work with startx/xinit or use the old storage group method.

−

−

====Consolekit (recommended)====

−

{{Note|You may have to start udiskie after your window manager is started. You may have to use the storage group method if your WM doesn't provide this functionality.}}

−

<!-- if someone has a way to start udiskie after the wm is started as a child process, (sub-shell + sleep) won't work, put it here--->

−

−

Start your window manager or desktop environment with ck-launch-session, for example, an exec line in ~/.xinitrc:

−

exec ck-launch-session awesome

−

−

====Storage group====

−

This can be done by creating <code>10-udiskie.pkla</code> in <code>/etc/polkit-1/localauthority/50-local.d</code> with these contents:

−

−

[udiskie]

−

Identity=unix-group:storage

−

Action=org.freedesktop.udisks.filesystem-mount

−

ResultAny=yes

−

−

This example configuration allows any member of the <code>storage</code> group to mount and unmount disks with udiskie.

== Unmounting ==

== Unmounting ==

Line 41:

Line 21:

udiskie-umount -a

udiskie-umount -a

−

−

== Window Manager Menu Scripts ==

−

−

For convenience, you can add a script to the menu in some window managers to allow for easy access and control of removable media.

−

−

===Openbox===

−

Here's an openbox menu script that offers a slight variation on the WindowMaker example below: