I'm trying to install the udisks utility. The problem is that it says that I have already the newest version of udisks installed on my computer:
sudo apt-get install udisks2
Reading package lists... Done
Building dependency tree
Reading state information... Done
udisks2 is already the newest version (2.1.7-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 83 not upgraded.However, running the following command produces no output which indicates that I don't have it installed:
which udisks2Running commands like the following one gives me an error:
udisks2 --unmount /dev/sdb
udisks2: command not found 1 2 Answers
To use the udisks2 utility commands, type
udisksctlAnd you see the options:
$ udisksctl
Usage: udisksctl COMMAND
Commands: help Shows this information info Shows information about an object dump Shows information about all objects status Shows high-level status monitor Monitor changes to objects mount Mount a filesystem unmount Unmount a filesystem unlock Unlock an encrypted device lock Lock an encrypted device loop-setup Set-up a loop device loop-delete Delete a loop device power-off Safely power off a drive smart-simulate Set SMART data for a drive
Use "udisksctl COMMAND --help" to get help on each command.Example
You wanted to unmount a flash drive with udisksctl you will need to get the name of the mounted partition. You can find out with:
lsblkexample output:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 1 15.2G 0 disk
└─sda1 8:1 1 15.2G 0 part /media/zanna/4C45-110Fso I can unmount this device:
udisksctl unmount -b /dev/sda1This is reversible with udisksctl mount -b /dev/sda1
udisks2 is installed in your system.
There is no command udisks2 that can be run in a terminal.
So everything looks correct.
You can use other terminal commands related to udisks like udisksctl.
See also man udisksd.