Udiskie is an automatic disk mounting service using . It can be used for mounting CDs, flash drives, and other media. It is simple to use and requires no configuration.
Once Udiskie is running, all removable media will automatically be mounted under
/media under a new directory that matches the device name.
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.
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.
udiskie-umount command to unmount media. For example, for a device named "MY_USB_DRIVE":
Or, you can unmount all media with the command: