Linux Commands Examples

A great documentation place for Linux commands


The udisks command line tool

see also : udisks


udisksctl status

udisksctl info {--object-path OBJECT | --block-device DEVICE}

udisksctl mount {--object-path OBJECT | --block-device DEVICE} [--filesystem-type TYPE] [--options OPTIONS...] [--no-user-interaction]

udisksctl unmount {--object-path OBJECT | --block-device DEVICE} [--force] [--no-user-interaction]

udisksctl unlock {--object-path OBJECT | --block-device DEVICE} [--no-user-interaction]

udisksctl lock {--object-path OBJECT | --block-device DEVICE} [--no-user-interaction]

udisksctl loop-setup --file PATH [--read-only] [--offset OFFSET] [--size SIZE] [--no-user-interaction]

udisksctl loop-delete {--object-path OBJECT | --block-device DEVICE} [--no-user-interaction]

udisksctl smart-simulate --file PATH {--object-path OBJECT | --block-device DEVICE} [--no-user-interaction]

udisksctl monitor

udisksctl dump

udisksctl help

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


udisksctl is a command-line program used to interact with the udisksd(8) daemon process.


This program does not assume that the caller is the super user - it is intended to be used by unprivileged users and authorizations are checked by the udisks daemon using polkit(8). Additionally, this program is not intended to be used by scripts or other programs - options/commands may change in incompatible ways in the future even in maintenance releases. See the “API STABILITY” section of udisks(8) for more information.

bash completion

udisksctl ships with a bash completion script to complete commands, objects, block devices and some options.



Shows high-level information about disk drives and block devices.


Shows detailed information about OBJECT or DEVICE.


Mounts a device. The device will be mounted in a subdirectory in the /media hierarchy - upon successful completion, the mount point will be printed to standard output.

The device will be mounted with a safe set of default options. You can influence the options passed to the mount(8) command with --options. Note that only safe options are allowed - requests with inherently unsafe options such as suid or dev that would allow the caller to gain additional privileges, are rejected.


Unmounts a device. This only works if the device is mounted. The option --force can be used to request that the device is unmounted even if active references exists.


Unlocks an encrypted device. The passphrase will be requested from the controlling terminal and upon successful completion, the cleartext device will be printed to standard output.


Locks a device. This only works if the device is a cleartext device backed by a cryptotext device.


Sets up a loop device backed by FILE.


Tears down a loop device.


Sets SMART data from the libatasmart blob given by FILE - see /usr/share/doc/libatasmart-devel-VERSION/ for blobs shipped with libatasmart. This is a debugging feature used to check that applications act correctly when a disk is failing.


Monitors the daemon for events.


Prints the current state of the daemon.


Prints help and exit.

common options

The option --no-user-interaction can be used to request that no interaction (such as the user being presented with an authentication dialog) must occur when checking with polkit(8) whether the caller is authorized to perform the requested action.


Please send bug reports to either the distribution bug tracker or the upstream bug tracker at

see also

udisks , udisksd, polkit


Written by David Zeuthen zeuthen[:at:]gmail[:dot:]com with a lot of help from many others.

How can this site be more helpful to YOU ?

give  feedback