UDISKSCTL(1)
π UDISKSCTL β the udisks command line tool π
okay bestie, gather round, because this is the manual page for udisksctl, a User Commands girlie, and she's about to tell you everything about talking to the udisks daemon from your terminal. no cap.
β¨ NAME β¨
udisksctl β The udisks command line tool π
πΈ SYNOPSIS πΈ
udisksctl status
udisksctl info {--object-path OBJECT | --block-device DEVICE |
--drive DRIVE}
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] [--key-file PATH] [--read-only]
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 power-off {--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
π DESCRIPTION π
udisksctl is a command-line program used to interact with the udisksd(8) daemon process. that's it, that's the vibe β you talk, the daemon listens, slay. π«Ά
π COMMANDS π
β status
Shows high-level information about disk drives and block devices. like a lil vibe check for your storage, fr fr.
β info
Shows detailed information about OBJECT, DEVICE or DRIVE. the deep dive, the lore, the whole backstory. π
β mount
Mounts a device. The device will be mounted in a subdirectory in the /run/media hierarchy β upon successful completion, the mount point will be printed to standard output. iconic behaviour honestly.
-t,--filesystem-typeβ Filesystem type to use. If you don't specify one, the autodetected filesystem type gets used instead. she figures it out herself π-o,--optionsβ The device will be mounted with a safe set of default options. You can influence the options passed to themount(8)command using this option. Note that only safe options are allowed β requests with inherently unsafe options such assuidordevthat would allow the caller to gain additional privileges, are rejected. no sneaky privilege glow-ups around here bestie, that's a hard no. π«
β unmount
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.
-f,--forceβ Lazy unmount. Detach the filesystem from the file hierarchy now, and clean up all references to this filesystem as soon as it is not busy anymore. she's leaving, but she'll grab her stuff later π
β unlock
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. the glow-up from cryptotext to cleartext? main character energy β¨
--key-file=PATHβ Read passphrase from the given file.
β lock
Locks a device. This only works if the device is a cleartext device backed by a cryptotext device. putting her back in the vault π
β loop-setup
Sets up a loop device backed by FILE.
-f,--file=FILEβ File to set up a loop device for.-r,--read-onlyβ Set up a read-only loop device.-o,--offset=OFFSETβ The data start is moved OFFSET bytes into the specified file.-s,--size=SIZEβ The data end is set to no more than SIZE bytes after the data start.
β loop-delete
Tears down a loop device. bye bitch π
β power-off
Arranges for the drive to be safely removed and powered off. On the OS side this includes ensuring that no process is using the drive, then requesting that in-flight buffers and caches are committed to stable storage. The exact steps for powering off the drive depends on the drive itself and the interconnect used. For drives connected through USB, the effect is that the USB device will be deconfigured followed by disabling the upstream hub port it is connected to.
β οΈ heads up bestie: as some physical devices contain multiple drives (for example 4-in-1 flash card reader USB devices) powering off one drive may affect other drives. As such there are not a lot of guarantees associated with performing this action. Usually the effect is that the drive disappears as if it was unplugged. so likeβ¦ she might take her friends with her. π
β smart-simulate
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. fake-it-till-you-make-it, but for disk failures π©Ί
-f,--file=FILEβ File with the libatasmart blob.
β monitor
Monitors the daemon for events. she's watching. always watching. π
β dump
Prints the current state of the daemon. the receipts, the whole situation, all of it π
β help
Prints help and exit. when in doubt, ask for help, that's self-care πΈ
π¦ DEVICE SPECIFICATION π¦
For commands that require a device as an argument following options can be used to specify it. pick your fighter:
-b,--block-device=DEVICEβ Specify a device by its device file path. For example/dev/sda.-p,--object-path=OBJECTβ Specify a device by the UDisks internal object path without the/org/freedesktop/UDisks2prefix. For exampleblock_devices/sdafor the/dev/sdadisk.-d,--drive=DRIVEβ Specify a drive by name, for exampleVirtIO_Disk. This can be currently used only together with theinfocommand. she's exclusive like that π
π 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. antisocial mode: activated π
π AUDIENCE π
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.
fr fr, do not script against this. she's for humans only, no automation parasocial relationships allowed π
π§ BASH COMPLETION π§
udisksctl ships with a bash completion script to complete commands, objects, block devices and some options. press <Tab>, receive serotonin β¨
π AUTHOR π
This man page was originally written for UDisks2 by David Zeuthen <zeuthen@gmail.com> with a lot of help from many others. group project but make it iconic π«Ά
π BUGS π
Please send bug reports to either the distribution bug tracker or the upstream bug tracker at https://github.com/storaged-project/udisks/issues. don't suffer in silence bestie, tell them everything π₯
β SEE ALSO β
udisks(8), udisksd(8), umount.udisks2(8), polkit(8)
and that's the whole page!! this is udisks 2.11.2, dating all the way back to August 2018 (vintage queen π), and yes, UDISKSCTL(1) is her full legal name. now go mount something responsibly. mwah πβ¨π
π¦ where this page comes from
- arch rolling: udisks2 2.11.2-1 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: udisks2 2.11.2-1.fc43 Β· GPL-2.0-or-later
- fedora 44: udisks2 2.11.2-1.fc44 Β· GPL-2.0-or-later
- nixpkgs unstable: udisks 2.11.2
- ubuntu stonking: udisks2 2.11.2-1ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms