Skip to content
Chris Atkinson edited this page Jan 15, 2020 · 3 revisions

After having installed, try starting udiskie from a terminal to check if there are any errors:

udiskie

This starts udiskie in the foreground. If no errors are shown, you are good to proceed. The process can be stopped by hitting <Ctrl>+C.

To start udiskie as a background program in a stand-alone window manager add the following line to your ~/.xinitrc:

udiskie &

The trailing ampersand & means that the program should run in the background. To stop udiskie, just type pkill udiskie.

In a desktop environment (such as gnome, kde, mate, xfce, cinnamon, …) you can just add udiskie to the list of autostarted applications (without the trailing &).

Currently, the default mode is that udiskie does automatically mount newly inserted devices and shows notifications but does not show a system tray. You can explicitly request or disable individual features using the command line. For example:

udiskie --no-automount --no-notify --tray

The same, using short options:

udiskie -ANt

Default values for options can also be specified in the config file. See the Man Page for more info.

Mounted media can be found in /media/<DEVICE> (udisks1) or /run/media/<USERNAME>/<DEVICE> (udisks2). It is possible to configure udisks2 to mount under /media as well, see here.

Note that it is possible to use udiskie with either udisks1 (specify -1 on the command line) or udisks2 (-2), but I recommend using udisks2. This is also the default setting as of udiskie 1.2.

Manual device management

Mount a specific device manually:

udiskie-mount /dev/sdb1

Unmount a specific device manually:

udiskie-umount /dev/sdb1

Recursively unmount and poweroff a device:

udiskie-umount /dev/sdb1 --force --detach

Alternatively, devices can be specified by…

  • … UUID: /dev/disk/by-uuid/<UUID>
  • … mount path (udisks1): /media/<DEVICE>
  • … mount path (udisks2): /run/media/<USER>/<DEVICE>

For further information on available program options see the Man Page.