Skip to content

Auto-mount not working as intended on image_2026-01-11-distiller-PROD-bigPPbuild.img #2

Description

@Nischal2017

USB storage devices are not being automatically mounted despite udiskie being installed and configured.

Steps to Reproduce

  1. Boot the system with a USB drive connected (e.g., 128GB exFAT drive)
  2. Check mounted filesystems with df -h
  3. Observe that the USB drive is detected (lsblk shows /dev/sda1) but not mounted

Expected Behavior

USB drives should be automatically mounted by udiskie when connected or on boot.

Actual Behavior

USB drives remain unmounted. Manual mounting with udisksctl mount -b /dev/sda1 works correctly.

Root Cause

The udiskie systemd user service exists at /etc/systemd/user/udiskie.service but cannot run because:

  1. No D-Bus session bus is available in the headless environment
  2. $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR are not defined
  3. systemd user services require a D-Bus session to function

$ systemctl --user status udiskie
Failed to connect to user scope bus via local transport: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined

Configuration Status

  • udiskie installed: Yes (/usr/bin/udiskie)
  • polkit rules configured: Yes (/etc/polkit-1/localauthority/50-local.d/ allows plugdev group)
  • User in plugdev group: Yes
  • systemd service file: Yes (/etc/systemd/user/udiskie.service)
  • D-Bus session: No

Suggested Fix

Either:

  1. Configure D-Bus session for the distiller user on boot
  2. Use a system-level udev rule with mount script instead of user-level udiskie service

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions