UDisks-2.9.4

Introduction to UDisks

The UDisks package provides a daemon, tools and libraries to access and manipulate disks and storage devices.

[Note]

Note

Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.

Package Information

UDisks Dependencies

Required

libatasmart-0.19, libblockdev-2.27, libgudev-237, libxslt-1.1.35, and Polkit-121

Required at runtime

btrfs-progs-5.18.1, dbus-1.14.0, dosfstools-4.2, gptfdisk-1.0.9, mdadm-4.2, and xfsprogs-5.18.0

Recommended

Optional (Required if building GNOME)

gobject-introspection-1.72.0

Optional

D-Bus Python-1.2.18 (for the integration tests), GTK-Doc-1.33.2, LVM2-2.03.16, ntfs-3g-2022.5.17, PyGObject-3.42.2 (for the integration tests), exFAT, and libiscsi

User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/udisks2

Installation of UDisks

Install UDisks by running the following commands:

./configure --prefix=/usr        \
            --sysconfdir=/etc    \
            --localstatedir=/var \
            --disable-static     &&
make

To test the results, issue: make check. A more thorough test can be run with make ci. You must first create the directories /var/run/udisks2 and /var/lib/udisks2, and the optional python modules should be present.

Now, as the root user:

make install

Command Explanations

--disable-static: This switch prevents installation of static versions of the libraries.

--enable-gtk-doc: Use this parameter if GTK-Doc is installed and you wish to rebuild and install the API documentation.

Configuring UDisks2

Config Files

/etc/udisks2/mount_options.conf and /etc/udisks2/udisks2.conf

Configuration Information

The default configuration of UDisks2 assumes ntfs-3g is used to mount NTFS filesystems. If the wrapper script for in-kernel NTFS3 driver (recommended in the ntfs-3g-2022.5.17 page) is used instead, create a configuration file for UDisks2 compatible with NTFS3 to allow mounting NTFS filesystems:

cat > /etc/udisks2/mount_options.conf << "EOF"
[defaults]
ntfs_defaults=uid=$UID,gid=$GID
EOF

Contents

Installed Programs: udisksctl and umount.udisks2
Installed Library: libudisks2.so
Installed Directories: /etc/udisks2, /usr/include/udisks2, /usr/libexec/udisks2, /usr/share/gtk-doc/html/udisks2, and /var/lib/udisks2

Short Descriptions

udisksctl

is a command-line program used to interact with the udisksd daemon

umount.udisks2

is a command-line program used to unmount file systems that have been mounted by the UDisks daemon

libudisks2.so

contains the UDisks API functions