UDISKS(1)
๐ UDISKS(1) ๐
okay bestie, welcome to the udisks man page โ that's manual section 1, and the tool is literally just called udisks ๐ฆ. Sit down, hydrate, we're learning a command line client together and it's gonna be adorable.
โจ NAME โจ
udisks โ the udisks command line tool, no cap ๐
โจ SYNOPSIS โจ
udisks [OPTIONS]
that's it. that's the whole vibe. options only, she doesn't take positional args ๐ธ
โจ DESCRIPTION โจ
so udisks is a simple command line client for the udisks(7) system bus service. that's the whole description. she's a client, she talks to the daemon over the system bus, and she does exactly what you tell her ๐ซถ
โจ OPTIONS โจ
--dumpโ dumps all the info about all the devices. bestie, please include this when you file bugs, the maintainers are begging ๐--enumerateโ lists every object path of every device the daemon knows about. just paths, no lore.--enumerate-device-filesโ same energy but it lists all the device files of the devices the daemon knows about instead ๐--monitorโ connects to the daemon and prints a line every single time an event happens. it just sits there and yaps about events, iconic behavior ๐--monitor-detailโ like--monitorbut it prints the full details of the device every time an event happens. so much more to read, so much more to love ๐ญ--show-infodevice_file โ shows information about device_file. yes girl, spill โ--inhibit-pollingdevice_file[--program arg...]โ inhibits polling on device_file. if you don't give it a program, polling stays inhibited until you hitCtrl+C. otherwise it spawns the program and the polling is only inhibited until that program terminates. the program is basically babysitting the inhibition ๐ง--poll-for-mediadevice_file โ polls device_file to perform media detection. she's checking for media. that's the whole job ๐--inhibit-all-polling[--program arg...]โ inhibits polling on all devices, every last one. no program given? inhibited untilCtrl+C. program given? it's spawned and polling is only inhibited until that program terminates. same rules, bigger scope ๐--mountdevice_file[--mount-fstypefstype] [--mount-optionsoptions]โ mounts the device represented by device_file using the file system fstype and a comma-separated list of options. mount her, bestie โฐ๏ธ--unmountdevice_file[--unmount-optionsoptions]โ unmounts the device represented by device_file, using a comma-separated list of options. say bye ๐ซก--detachdevice_file[--detach-optionsoptions]โ detaches the device represented by device_file using a comma-separated list of options. that's stuff like powering down the physical port the device is connected to. she's leaving the building ๐ช--ejectdevice_file[--eject-optionsoptions]โ ejects the media from the device represented by device_file, using a comma-separated list of options. bye-bye disc ๐ฟ--ata-smart-refreshdevice_file[--ata-smart-wakeup]โ refreshes the ATA SMART data for device_file. if the disk is sleeping, it will not be woken up unless you pass--ata-smart-wakeup. and then the original page just sayswill be used.โ same, bestie, same, we don't know what that refers to either ๐ญ--ata-smart-refreshdevice_file--ata-smart-simulateblob โ reads ATA SMART data from blob for device_file. this can only be done by the super user, and it's typically used for testing that clients relying on the ATA SMART data provided by udisks behave correctly. thelibatasmartgit repository athttp://git.0pointer.de/?p=libatasmart.git;a=summarycontains a collection of blobs from failing disks, if you want real-world chaos to test against ๐--inhibit[--program arg...]โ inhibits clients from invoking methods on the daemon that require authorization. all those methods will return theorg.freedesktop.UDisks.Error.Inhibitederror if the caller is not the super user. this is typically used by OS installers and other programs that expect full control of the system, specifically to avoid automounting devices. only the super user can do this, so don't try it at home ๐
if no program is given, the daemon is inhibited until Ctrl+C is pressed. otherwise the program is spawned and the daemon is only inhibited until the program terminates.
--set-spindowndevice_file--spindown-timeoutseconds[--program arg...]โ configures the disk spindown timeout on device_file to seconds. go read the section called โSPINNING DOWN DISKSโ before you use this, it's important, I'm not joking around on this one ๐
if no program is given, the spindown time will be used until Ctrl+C is pressed. otherwise the program is spawned and the spindown timeout will only be used until the program terminates.
--set-spindown-all--spindown-timeoutseconds[--program arg...]โ configures the disk spindown timeout on all disks that can be spun down to seconds. also go read the section called โSPINNING DOWN DISKSโ first, seriously ๐จ
if no program is given, the spindown time will be used until Ctrl+C is pressed. otherwise the program is spawned and the spindown timeout will only be used until the program terminates.
--helpโ show help options. the classic. the icon. the one everyone runs first ๐
๐ SPINNING DOWN DISKS ๐
caution should be exercised when configuring disk spin down timeouts. like, actual caution. I'm being so serious right now.
note that every time a disk is spun down, the start-stop-count ATA SMART attribute goes up by 1, and most disks are only good for a limited number of those โ typically 50,000 but it varies by manufacturer and model. so every spindown is a lil tick on the odometer ๐ฐ๏ธ
plus, the drive may take as long as 30 seconds to respond to subsequent disk access. most drives are typically faster than that โ go check the spin-up-time ATA SMART attribute if you want the receipts ๐
on the other hand? cautious use (like, using conservative timeouts) of the ability to spin down disks can be a good way to trade power consumption โ typically 8 vs 1 Watts for 3.5" drives โ and heat emission, for a slightly higher latency. it's giving tradeoff. it's giving thermodynamics ๐ฆ
๐ AUTHOR ๐
written by David Zeuthen <david@fubar.dk> with a lot of help from many others. a whole village, honestly ๐ซถ
๐ BUGS ๐
please send bug reports to either the distribution bug tracker or the upstream bug tracker at http://bugs.freedesktop.org/enter_bug.cgi?product=udisks. and remember that --dump thing from earlier? yeah. that one. include it ๐ฎ
โญ SEE ALSO โญ
and that's the whole page, bestie!! this beauty is from the udisks source, dated April 2008, and lives in manual section 1 as UDISKS(1). go forth, enumerate some devices, and hydrate ๐โจ๐
๐ฆ where this page comes from
- fedora 43: udisks 1.0.5-30.fc43 ยท GPL-2.0-or-later
- fedora 44: udisks 1.0.5-31.fc44 ยท 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