2020-10-28 21:37:26 +03:30
|
|
|
# udisksctl
|
|
|
|
|
2023-07-16 19:23:40 +02:00
|
|
|
> Interact with `udisksd` to query and manipulate storage devices.
|
2024-10-12 10:02:00 +02:00
|
|
|
> More information: <https://storaged.org/doc/udisks2-api/latest/udisksctl.1.html>.
|
2020-10-28 21:37:26 +03:30
|
|
|
|
|
|
|
- Show high-level information about disk drives and block devices:
|
|
|
|
|
|
|
|
`udisksctl status`
|
|
|
|
|
|
|
|
- Show detailed information about a device:
|
|
|
|
|
2025-05-03 17:36:49 +02:00
|
|
|
`udisksctl info {{[-b|--block-device]}} {{/dev/sdX}}`
|
2020-10-28 21:37:26 +03:30
|
|
|
|
|
|
|
- Show detailed information about a device partition:
|
|
|
|
|
2025-05-03 17:36:49 +02:00
|
|
|
`udisksctl info {{[-b|--block-device]}} {{/dev/sdXN}}`
|
2020-10-28 21:37:26 +03:30
|
|
|
|
|
|
|
- Mount a device partition and prints the mount point:
|
|
|
|
|
2025-05-03 17:36:49 +02:00
|
|
|
`udisksctl mount {{[-b|--block-device]}} {{/dev/sdXN}}`
|
2020-10-28 21:37:26 +03:30
|
|
|
|
|
|
|
- Unmount a device partition:
|
|
|
|
|
2025-05-03 17:36:49 +02:00
|
|
|
`udisksctl unmount {{[-b|--block-device]}} {{/dev/sdXN}}`
|
|
|
|
|
|
|
|
- Power off a device to safely remove it:
|
|
|
|
|
|
|
|
`udisksctl power-off {{[-b|--block-device]}} {{/dev/sdX}}`
|
2020-10-28 21:37:26 +03:30
|
|
|
|
|
|
|
- Monitor the daemon for events:
|
|
|
|
|
|
|
|
`udisksctl monitor`
|