USB storage devices are not being automatically mounted despite udiskie being installed and configured.
Steps to Reproduce
- Boot the system with a USB drive connected (e.g., 128GB exFAT drive)
- Check mounted filesystems with
df -h
- 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:
- No D-Bus session bus is available in the headless environment
$DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR are not defined
- 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:
- Configure D-Bus session for the distiller user on boot
- Use a system-level udev rule with mount script instead of user-level udiskie service
USB storage devices are not being automatically mounted despite udiskie being installed and configured.
Steps to Reproduce
df -hlsblkshows/dev/sda1) but not mountedExpected 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/sda1works correctly.Root Cause
The udiskie systemd user service exists at
/etc/systemd/user/udiskie.servicebut cannot run because:$DBUS_SESSION_BUS_ADDRESSand$XDG_RUNTIME_DIRare not defined$ 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
/usr/bin/udiskie)/etc/polkit-1/localauthority/50-local.d/allows plugdev group)/etc/systemd/user/udiskie.service)Suggested Fix
Either: