Automounting removable drives with udiskie.
Installation
sudo pacman -S udiskie udisks2Usage
Start udiskie
Run in background (auto-mounts drives):
udiskie &With tray icon:
udiskie --tray &Hyprland Integration
Add to ~/.config/hypr/hyprland.conf:
exec-once = udiskie --trayConfiguration
Config location: ~/.config/udiskie/config.yml
program_options:
tray: true
notify: true
automount: true
device_config:
- device_file: /dev/sda1
options:
- noexecManual Control
# Mount
udisksctl mount -b /dev/sdb1
# Unmount
udisksctl unmount -b /dev/sdb1
# Power off (safely eject)
udisksctl power-off -b /dev/sdb
# List drives
lsblkEncrypted Drives
udiskie handles LUKS-encrypted drives automatically — prompts for password when detected.
For command line:
# Unlock
udisksctl unlock -b /dev/sdb1
# Then mount
udisksctl mount -b /dev/dm-0Mount Points
By default, drives mount to /run/media/$USER/<label>
Tips
- Use
--no-automountif you prefer manual mounting - Notifications require a notification daemon (e.g., Mako)
- For NTFS support:
sudo pacman -S ntfs-3g
Resources
- GitHub: https://github.com/coldfix/udiskie
- Arch Wiki: https://wiki.archlinux.org/title/Udisks