Important: You are required to change your passwords used for Gentoo services and set an email address for your Wiki account if you haven't done so. See the full announcement and Wiki email policy change for more information.

udisks

From Gentoo Wiki
Jump to: navigation, search

External resources

udisks is a D-Bus daemon offering some storage related services:

Installation

Prerequisites

Udisks uses D-Bus and polkit, so set them up first.

Kernel

You need to activate the following kernel options:

Kernel configurationudisks1

Device Drivers  --->
    < > ATA/ATAPI/MFM/RLL support (DEPRECATED)  --->
    [*] USB support  --->
        <*>   Support for Host-side USB
        [*]     USB runtime power management (autosuspend) and wakeup
File Systems -->
    Native Language Support -->
        <*> NLS UTF8
Kernel configurationudisks2

General setup  --->
    [*] Support for paging of anonymous memory (swap)
Device Drivers  --->
    < > ATA/ATAPI/MFM/RLL support (DEPRECATED)  --->
File Systems -->
    Native Language Support -->
        <*> NLS UTF8
    Pseudo filesystems  --->
        -*- Tmpfs virtual memory file system support (former shm fs)
        [*]   Tmpfs POSIX Access Control Lists

Software

Portage knows the global USE flag udisks for enabling support for udisks in other packages. Enabling this USE flag will pull in sys-fs/udisks automatically (default for desktop profiles):

File/etc/portage/make.conf

USE="... udisks ..."
udisks1 → Information about USE flags
USE flag Default Recommended Description
debug No Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml
nls Yes Adds Native Language Support (using gettext - GNU locale utilities)
remote-access No Control whether connections from other clients over LAN are allowed


udisks2 → Information about USE flags
USE flag Default Recommended Description
cryptsetup No Enable sys-fs/cryptsetup support
debug No Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml
gptfdisk Yes Pull in sys-apps/gptfdisk for sgdisk command as used by partitioning functionality
introspection Yes Use dev-libs/gobject-introspection for introspection
selinux No  !!internal use only!! Security Enhanced Linux support, this must be set by the selinux profile or breakage will occur
systemd No Support sys-apps/systemd's logind

After setting this you want to update your system so the changes take effect:

root # emerge --ask --changed-use --deep @world

Addon software

Configuration

Udisks uses polkit to handle permissions.

Usage

Some useful commands are:

  • udisks --enumerate - Lists all storage devices.
  • udisks --monitor - Monitor udisks.
  • udisks --monitor-details - Monitor udisks with more details.
  • udisks --inhibit-polling /dev/DEVICEFILE - Disable polling on the given device.

Troubleshooting