Udiskie

From ArchWiki
Revision as of 19:45, 12 April 2013 by Earnest (Talk | contribs) (Window Manager Menu Scripts: Inappropriate place to store scripts. Use an external repo and link to it instead.)

Jump to: navigation, search

Udiskie is an automatic disk mounting service using udisks. It can be used for mounting CDs, flash drives, and other media. It is simple to use and requires no configuration.

Installation

You can install Udiskie by using the udiskie package that is found in the Official Repositories. Start the Udiskie service by adding

udiskie &

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

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

Permissions

udiskie requires permission for the org.freedesktop.udisks.filesystem-mount action to be granted through PolicyKit. If you use a display manager that supports Systemd#Using_systemd-logind this will be taken care of for you automatically.

Storage group

If it doesn't already exist, create the file /etc/polkit-1/localauthority/50-local.d/10-udiskie.pkla with these contents:

 [Local Users]
 Identity=unix-group:storage
 Action=org.freedesktop.udisks.*
 ResultAny=yes
 ResultInactive=yes
 ResultActive=yes

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

Unmounting

Use the udiskie-umount command to unmount media. For example, for a device named "MY_USB_DRIVE":

 udiskie-umount /media/MY_USB_DRIVE

Or, you can unmount all media with the command:

 udiskie-umount -a