UDISKIE(8)
π UDISKIE(8) β automounter for removable media π
okay bestie, welcome to the UDISKIE(8) manual page for udiskie β aka the Unix-side main character of removable media. Letβs get into it. π
πΈ NAME πΈ
udiskie β automounter for removable media
β¨ SYNOPSIS β¨
udiskie [OPTIONS]
udiskie-mount [OPTIONS] (-a | DEVICE...)
udiskie-umount [OPTIONS] (-a | PATH...)
π DESCRIPTION π
udiskie is an udisks2 front-end written in python. Its whole main-character purpose is automatically mounting removable media, like CDs or flash drives. <emoji>πΏ</emoji>β¨
It also has optional mount notifications, a GTK tray icon, and user level CLIs for manual mount and unmount operations. The media gets mounted in a new directory under /media or /run/media/USER/, using the device name if possible. slay. π«Ά
π«Ά COMMON OPTIONS π«Ά
-h,--helpβ show the help message and exit.-V,--versionβ show help message and exit.-v,--verboseβ verbose output.-q,--quietβ quiet output.-c FILE,--config=FILEβ specify the config file.-C,--no-configβ donβt use any config file.
π SHARED MOUNT AND DAEMON OPTIONS π
-p COMMAND,--password-prompt=COMMANDβ password retrieval command. The string is formatted with the device attributes as keyword arguments, e.g.:
-p "zenity --entry --hide-text --text 'Enter password for {device_presentation}:'"
-P,--no-password-promptβ disable unlocking of LUKS devices.
π§ DAEMON OPTIONS π§
-a,--automountβ enable automounting new devices (default).-A,--no-automountβ disable automounting new devices.-n,--notifyβ enable pop-up notifications (default).-N,--no-notifyβ disable pop-up notifications.-t,--trayβ show tray icon.-s,--smart-trayβ show tray icon that automatically hides when there is no action available.-T,--no-trayβ disable tray icon (default).-f PROGRAM,--file-manager=PROGRAMβ set program to open mounted directories. Default is'xdg-open'. Pass an empty string to disable this feature.-F,--no-file-managerβ disable browsing.--terminal=PROGRAMβ set terminal command line to open mounted directories. Default is none! Pass an empty string to disable this feature.--no-terminalβ disable terminal action.--appindicatorβ use AppIndicator3 for the status icon. Use this on Ubuntu/Unity if no icon is shown.--no-appindicatorβ use Gtk.StatusIcon for the status icon (default).--password-cache MINUTESβ cache passwords for LUKS partitions and set the timeout.--no-password-cacheβ never cache passwords (default).--event-hook COMMANDβ command to execute on device events. Command string be formatted using the event name and the list of device attributes (see below), e.g.:
--event-hook "zenity --info --text '{event}: {device_presentation}'"
--no-event-hookβ no notify command (default).
π MOUNT OPTIONS π
-a,--allβ mount all handled devices.-r,--recursiveβ recursively mount cleartext partitions after unlocking a LUKS device. This will happen by default when running theudiskiedaemon.-R,--no-recursiveβ disable recursive mounting (default).-o OPTIONS,--options=OPTIONSβ set mount options.
π¦ UNMOUNT OPTIONS π¦
-a,--allβ unmount all handled devices.-d,--detachβ detach drive by e.g. powering down its physical port.-D,--no-detachβ donβt detach drive (default).-e,--ejectβ eject media from the drive, e.g CDROM.-E,--no-ejectβ donβt eject media (default).-f,--forceβ force removal (recursive unmounting).-F,--no-forceβ donβt force removal (default).-l,--lockβ lock device after unmounting (default).-L,--no-lockβ donβt lock device.
π EXAMPLE USAGE π
Start udiskie in ~/.xinitrc:
udiskie &
Unmount media and power down USB device:
udiskie-umount --detach /media/Sticky
Mount all media:
udiskie-mount -a
Mount /dev/sdb1:
udiskie-mount /dev/sdb1
π CONFIGURATION π
The file .config/udiskie/config.yml can be used to configure defaults for command line parameters and customize further settings. The actual path may differ depending on $XDG_CONFIG_HOME. The file format is YAML, see https://en.wikipedia.org/wiki/YAML. If you donβt want to install PyYAML, it is possible to use an equivalent JSON file with the name config.json instead. <emoji>π¦</emoji>
# This is an example (nonsense) configuration file for udiskie.
program_options:
# Configure defaults for command line options
tray: auto # [bool] Enable the tray icon. "auto"
# means auto-hide the tray icon when
# there are no handled devices.
menu: flat # ["flat" | "nested"] Set the
# systray menu behaviour.
automount: false # [bool] Enable automatic mounting.
notify: true # [bool] Enable notifications.
password_cache: 30 # [int] Password cache in minutes. Caching is
# disabled by default. It can be disabled
# explicitly by setting it to false
file_manager: xdg-open
# [string] Set program to open directories. It will be invoked
# with the folder path as its last command line argument.
terminal: 'termite -d'
# [string] Set terminal command line to open directories. It will be
# invoked with the folder path as its last command line argument.
password_prompt: ["gnome-keyring-query", "get", "{id_uuid}"]
# [string|list] Set command to retrieve passwords. If specified
# as a list it defines the ARGV array for the program call. If
# specified as a string, it will be expanded in a shell-like
# manner. Each string will be formatted using `str.format`. For a
# list of device attributes, see below. The two special string values
# "builtin:gui" and "builtin:tty" signify to use udiskie's
# builtin password prompt.
event_hook: "zenity --info --text '{event}: {device_presentation}'"
# [string|list] Set command to be executed on any device event.
# This is specified like `password_prompt`.
device_config:
# List of device option rules. Each item can match any combination of device
# attributes. Additionally, it defines the resulting action (see below).
# Any rule can contain multiple filters (AND) and multiple actions.
# Only the first matching rule that defines a given action is used.
# The rules defined here are simply prepended to the builtin device rules,
# so that it is possible to completely overwrite the defaults by specifying
# a catch-all rule (i.e. a rule without device attributes).
# Filter rules can be passed a list of values, in which case the rule is matched
# if the attribute matches any of the values in the list.
- device_file: /dev/dm-5 # [filter]
ignore: false # [action] never ignore this device
- id_uuid: # [filter] match by device UUID
- 9d53-13ba # This rule matches on either of these uids
- 8675-309a
options: [noexec, nodev] # [action] mount options can be given as list
ignore: false # [action] never ignore this device (even if fs=FAT)
automount: false # [action] do not automount this device
- id_type: vfat # [filter] match file system type
ignore: true # [action] ignore all FAT devices
- id_type: ntfs # [filter] (optional)
skip: true # [action] skip all further (even builtin) rules
# for all matched devices, and resolve action result
# on parent device
- ignore: true # never mount/unmount or even show this in the GUI
automount: false # show but do not automount this device
options: [] # additional options to be passed when mounting
- id_uuid: ... # [filter] match device by UUID
keyfile: /path/to/keyfile # [action] use keyfile to unlock a luks encrypted
# device, bypassing the password prompt
mount_options: # [deprecated] do not use
ignore_device: # [deprecated] do not use
notifications:
# Customize which notifications are shown for how long. Possible
# values are:
# positive number timeout in seconds
# false disable
# -1 use the libnotify default timeout
timeout: 1.5 # set the default for all notifications
# Specify only if you want to overwrite the default:
device_mounted: 5 # mount notification
device_unmounted: false # unmount notification
device_added: false # device has appeared
device_removed: false # device has disappeared
device_unlocked: -1 # encrypted device was unlocked
device_locked: -1 # encrypted device was locked
job_failed: -1 # mount/unlock/.. has failed
quickmenu_actions: [mount, unmount, unlock, terminal, detach, delete]
# List of actions to be shown in the quickmenu or the special value 'all'.
# The quickmenu is shown on left-click if using flat menu type.
notification_actions:
# Define which actions should be shown on notifications. Note that there
# are currently only a limited set of actions available for each
# notification. Events that are not explicitly specified show the default
# set of actions. Specify an empty list if you don't want to see any
# notification for the specified event:
device_mounted: [browse]
device_added: [mount]
icon_names:
# Customize the icon set used by the tray widget. Each entry
# specifies a list of icon names. The first installed icon from
# that list will be used.
media: [drive-removable-media, media-optical]
browse: [document-open, folder-open]
terminal: [terminal, terminator, xfce-terminal]
mount: [udiskie-mount]
unmount: [udiskie-unmount]
unlock: [udiskie-unlock]
lock: [udiskie-lock]
eject: [udiskie-eject, media-eject]
detach: [udiskie-detach]
delete: [udiskie-eject]
quit: [application-exit]
All keys are optional. Reasonable defaults are used if you leave them unspecified. <emoji>π</emoji>
π§© DEVICE ATTRIBUTES π§©
Okay so some of the config entries use what we call Device attributes β think of them as little vibe-checks you can run on a device to ask "hey, are you a drive? do you have a label? are you, like, mounted rn?"
Here's the list that's currently available β but bestie, listen: there is no guarantee that they will remain available π so don't go building your whole personality on them, k?
is_driveβ no hint given, she's mysterious πis_blockβ no hint given eitheris_partition_tableβ nope, no hintis_partitionβ still no hintis_filesystemβ no hint, just vibesis_luksβ no hintis_loopβ no hintis_toplevelβ no hintis_detachableβ no hintis_ejectableβ no hinthas_mediaβ no hintdevice_fileβ block device path, e.g."/dev/sdb1"device_presentationβ display string, e.g."/dev/sdb1"device_sizeβ block device sizedevice_idβ unique, persistent device identifierid_usageβ E.g."filesystem"or"crypto"is_cryptoβ no hintis_ignoredβ no hintid_typeβ E.g."ext4"or"crypto_LUKS"id_labelβ device labelid_uuidβ device UUIDis_luks_cleartextβ no hintis_externalβ udisks flagHintSystem=falseis_systeminternalβ udisks flagHintSystem=trueis_mountedβ no hintmount_pathsβ list of mount pathsmount_pathβ any mount pathis_unlockedβ no hintin_useβ device or any of its children mountedshould_automountβ no hintui_labelβ no hint (yes, theui_ones are also just mysteriously hintless)loop_fileβ file backing the loop devicesetup_by_uidβ user that setup the loop deviceautoclearβ automatically delete loop device after usesymlinksβ no hintdrive_modelβ no hintdrive_vendorβ no hintdrive_labelβ no hintui_device_labelβ no hintui_device_presentationβ no hintui_id_labelβ no hintui_id_uuidβ no hint
π SEE ALSO π
udisks(1)β the main character whose lore we're all referencing π«Ά
And the official site, go be nosy:
https://www.freedesktop.org/wiki/Software/udisks/
π CONTACT π
Got an issue? Got a question? Got a "bestie what if you addedβ¦" feature idea? πΈ You can totally use the github issues for any of that β reporting issues you encounter, asking general questions, or suggesting new features. And if you don't have github, or just don't like it (valid, honestly), you can reach out by email instead:
https://github.com/coldfix/udiskie/issues
thomas@coldfix.de
Go off, file that issue, she's literally waiting for it π¬
And that's the whole page, bestie β you ate that π
β¨ This iconic little manual is udiskie, dated 08/07/2026, from the UDISKIE(8) corner of the universe. Go unmount something responsibly ππ¦
π¦ where this page comes from
- arch rolling: udiskie 2.7.0-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms