Difference between revisions of "Udiskie"

From ArchWiki
Jump to: navigation, search
m (Window Manager Menu Scripts: Inappropriate place to store scripts. Use an external repo and link to it instead.)
m (Storage group: Not required any more with 70-uaccess.rules and udev)
Line 14: Line 14:
 
===Permissions===
 
===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 [[Systemd#Using_systemd-logind]] this will be taken care of for you automatically.
 
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 [[Systemd#Using_systemd-logind]] this will be taken care of for you automatically.
 
====Storage group====
 
If it doesn't already exist, create the file {{ic|/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 {{ic|storage}} group to mount and unmount disks with udiskie.
 
  
 
== Unmounting ==
 
== Unmounting ==

Revision as of 19:45, 12 April 2013

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.

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