How to automount usb drives in Debian (10) Buster?

Recently on a fresh installation of Debian Buster encountered the problem of automounting the external USB drives on my Dell N5010 Laptop. Didn’t faced such problem on Debian Stretch or older versions. After researching found that responsible package for automounting are udisks2 and libglib2.0-bin. udiskie is also responsible to automount USB drive. These all are properly installed, but didn’t working. Even due to this GParted was not opening. Even tried on the Terminal with sudo but it was showing message ‘Too few arguments’.

FIX :

Added a user systemd service to start udiskie:
/etc/systemd/user/udiskie.service with following code.

[Unit]
Description=Udiskie automount daemon

[Install]
WantedBy=graphical-session.target

[Service]
ExecStart=/usr/bin/udiskie --verbose --use-udisks2 --automount --no-config --notify --tray --appindicator

After rebooting this fixed the automounting the external USB drives and GParted too.

Author: Suthar Naveen P

A Linux enthusiast. Full Stack Web Developer and Graphic Designer works on Debian Linux. Founder of 'Naveen Web Solutions' and contributor at Shutterstock.

Leave a Reply

Your email address will not be published.