Difference between revisions of "Udisksctl"

From wikieduonline
Jump to navigation Jump to search
Line 16: Line 16:
  
 
== Usage ==
 
== Usage ==
To manually mount a removable drive, for example <code>/dev/sdc</code>, use <code>[[lsblk]]</code>:
+
To manually mount a removable drive, for example <code>/dev/sdc</code>, use <code>[[lsblk]]</code> to identify device:
 
  $ udisksctl mount -b /dev/sdc1
 
  $ udisksctl mount -b /dev/sdc1
 
  Mounted /dev/sdc1 at [[/media/]]root/backup.
 
  Mounted /dev/sdc1 at [[/media/]]root/backup.

Revision as of 10:42, 11 October 2020

udisksctl utility for manipulating disk drives and block devices. Included in the udisk2 package.

Man: http://manpages.ubuntu.com/manpages/bionic/man1/udisksctl.1.html



Usage

To manually mount a removable drive, for example /dev/sdc, use lsblk to identify device:

$ udisksctl mount -b /dev/sdc1
Mounted /dev/sdc1 at /media/root/backup.

To manually unmount:

$ udisksctl unmount -b /dev/sdc1

udisksctl status
MODEL                     REVISION  SERIAL               DEVICE
--------------------------------------------------------------------------
HPE LOGICAL VOLUME        1.99      600508b1001ce076d1b28c4e6235bfxx sdb
Generic- SD/MMC CRW       1.00      19203008282014111    sda
udisksctl status
MODEL                     REVISION  SERIAL               DEVICE
--------------------------------------------------------------------------
HPE LOGICAL VOLUME        1.99      600508b1001ce076d1b28c4e6235bf08 sdb
Generic- SD/MMC CRW       1.00      29203008282014000              sda
WD My Book 25EE           4004      682243374B31585853483022 sdc
udisksctl monitor
Monitoring the udisks daemon. Press Ctrl+C to exit.
06:20:39.357: The udisks-daemon is running (name-owner :1.397).

See udisksctl --help for more.

Related terms

See also

Advertising: