1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-04 03:15:23 +02:00
tldr/pages/linux/udisksctl.md

33 lines
824 B
Markdown
Raw Normal View History

2020-10-28 21:37:26 +03:30
# udisksctl
> 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`