0

I have installed usbmount on Pi 3 "Raspbian GNU/Linux Debian 10 (buster)". After rebooting or pugging in a USB hard-drive, I see this in /var/log/syslog:

Jul 25 15:44:03 gbox usbmount[538]: loaded usbmount configurations
Jul 25 15:44:03 gbox usbmount[538]: trying to acquire lock /var/run/usbmount/.mount.lock
...
Jul 25 15:44:03 gbox usbmount[538]: acquired lock /var/run/usbmount/.mount.lock
...
Jul 25 15:44:03 gbox usbmount[538]: /dev/sda1 contains filesystem type ext4
Jul 25 15:44:03 gbox usbmount[538]: mountpoint /media/usb0 is available for /dev/sda1
Jul 25 15:44:03 gbox usbmount[538]: executing command: mount -text4 -osync,noexec,nodev,noatime,nodiratime /dev/sda1 /media/usb0
...
Jul 25 15:44:04 gbox usbmount[538]: executing command: run-parts /etc/usbmount/mount.d
Jul 25 15:44:04 gbox usbmount[538]: usbmount execution finished

/media/usb0 is not mounted

I can however sudo to root and run the command from the syslog and it works fine:

mount -text4 -osync,noexec,nodev,noatime,nodiratime /dev/sda1 /media/usb0

/media/usb0 is mounted

The log mentions /etc/usbmount/mount.d after the mount command. There is only one file in there so I run it by hand:

/etc/usbmount/mount.d/00_create_model_symlink

/media/usb0 still mounted

Any idea why usbmount seems to work but does not mount the drive?

1 Answer 1

1

Updated /lib/systemd/system/systemd-udevd.service

Change: PrivateMounts=yes
To: PrivateMounts=no

see: https://raspberrypi.stackexchange.com/a/100375/1016

1
  • Please accept your own answer with a click on the tick on its left side. Only this will finish the question and it will not pop up again year for year.
    – Ingo
    Dec 24, 2019 at 10:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.