Warum Udisks nicht im System ist

10

Im Ubuntu-Handbuch zu AutomaticallyMountPartitions wird beschrieben, dass Nautilus UDisks verwendet, um Partitionen zu mounten. Aber wenn ich udisks im Terminal System eintippe sagt, dass ich es installieren muss. Also, benutzt Nautilus wirklich UDisks?

"When you mount a disc normally with the file browser (nautilus etc) it mounts disks by interacting with udisks behind the scenes."
    
vico 12.07.2015, 12:11

2 Antworten

7

In Trusty udisks2 wird von default installiert und von nautilus verwendet .

Die Binärdatei ist in

/usr/bin/udisksctl

gefunden über dpkg -L udisks2 | grep bin/

von man udisksctl

NAME
       udisksctl - The udisks command line tool

SYNOPSIS
       udisksctl status

       udisksctl info {--object-path OBJECT | --block-device DEVICE}

       udisksctl mount {--object-path OBJECT | --block-device DEVICE} [--filesystem-type TYPE] [--options OPTIONS...] [--no-user-interaction]

       udisksctl unmount {--object-path OBJECT | --block-device DEVICE} [--force] [--no-user-interaction]

       udisksctl unlock {--object-path OBJECT | --block-device DEVICE} [--no-user-interaction]

       udisksctl lock {--object-path OBJECT | --block-device DEVICE} [--no-user-interaction]

       udisksctl loop-setup --file PATH [--read-only] [--offset OFFSET] [--size SIZE] [--no-user-interaction]

       udisksctl loop-delete {--object-path OBJECT | --block-device DEVICE} [--no-user-interaction]

       udisksctl power-off {--object-path OBJECT | --block-device DEVICE} [--no-user-interaction]

       udisksctl smart-simulate --file PATH {--object-path OBJECT | --block-device DEVICE} [--no-user-interaction]

       udisksctl monitor

       udisksctl dump

       udisksctl help

Hier ist ein kurzer Test

% sudo apt-get remove udisks2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  arronax arronax-nautilus brasero deja-dup-backend-gvfs gnome-disk-utility
  gnome-shell-extensions gnome-sushi gvfs gvfs-backends gvfs-backends-goa
  gvfs-daemons gvfs-fuse nautilus nautilus-sendto nautilus-share software-center
  ubuntu-gnome-desktop udisks2 usb-creator-common usb-creator-gtk
0 upgraded, 0 newly installed, 20 to remove and 0 not upgraded.
After this operation, 20,9 MB disk space will be freed.
Do you want to continue? [Y/n]
% sudo apt-get remove udisks
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  udisks
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 1.043 kB disk space will be freed.
Do you want to continue? [Y/n]
    
A.B. 12.07.2015 12:41
3

Ich habe UDisks verwendet, um eine NTFS-Partition auf der gleichen Festplatte wie das Betriebssystem zu mounten. Mein Befehl sah so aus.

/usr/bin/udisks --mount /dev/disk/by-uuid/

Ich habe diesen Befehl in 16.04 (18) verwendet:

udisksctl mount --block-device /dev/disk/by-uuid/
    
zdanb 12.07.2016 03:45

Tags und Links