Superkoning Posted February 2, 2018 Posted February 2, 2018 This is a FYI: My armbian did not automount my USB-disk. Possbile reason "By default, disk drives do not auto-mount in Ubuntu Server Edition.". Anyway: I solved it with usbmount: First install usbmount. Then, in /etc/usbmount/usbmount.conf change the line #MOUNTOPTIONS="sync,noexec,nodev,noatime,nodiratime" to MOUNTOPTIONS="sync,noexec,nodev,noatime,nodiratime,user,umask=0000" to make it writeable for all users. HTH 1
marine1988 Posted September 30, 2018 Posted September 30, 2018 i can´t find usbmount in last version of armbian
Superkoning Posted October 1, 2018 Author Posted October 1, 2018 9 hours ago, marine1988 said: i can´t find usbmount in last version of armbian $ apt search usbmount Sorting... Done Full Text Search... Done usbmount/xenial,xenial,now 0.0.22 all [installed] automatically mount and unmount USB mass storage devices and sudo apt-get install usbmount HTH
marine1988 Posted March 15, 2019 Posted March 15, 2019 On 10/1/2018 at 6:04 AM, Superkoning said: $ apt search usbmount Sorting... Done Full Text Search... Done usbmount/xenial,xenial,now 0.0.22 all [installed] automatically mount and unmount USB mass storage devices and sudo apt-get install usbmount HTH no luck here on orange pi prime with last beta armbian version " pi@orangepiprime:~$ apt search usbmount Sorting... Done Full Text Search... Done pi@orangepiprime:~$ "
R3C4R Posted May 21, 2019 Posted May 21, 2019 Didn't work for me on Nanopi Neo2 with Bionic Beaver. Any other suggestions?
Rolf Bakker Posted May 22, 2019 Posted May 22, 2019 There seems to be a bug, source: https://codeyarns.com/2019/05/18/usbmount-not-mounting-problem/ Solution: systemd seems to be the culprit. It sets MountFlags=slave in its systemd-udevd.service file, which causes, the mount operation of usbmount mounting into the namespace of systemd and not to the user. To change this mount option, run this command: sudo systemctl edit systemd-udevd Add these lines to the file: [Service] MountFlags=shared This creates the file /etc/systemd/system/systemd-udevd.service.d/override.conf with the above lines. Restart systemd on your NanoPi Neo2: sudo systemctl daemon-reload sudo service systemd-udevd --full-restart
renard Posted December 26, 2019 Posted December 26, 2019 On 3/15/2019 at 2:59 AM, marine1988 said: no luck here on orange pi prime with last beta armbian version " pi@orangepiprime:~$ apt search usbmount Sorting... Done Full Text Search... Done pi@orangepiprime:~$ " Yep. Confirm this with orange pi prime. No such package: # cat /etc/armbian-release # PLEASE DO NOT EDIT THIS FILE BOARD=orangepiprime BOARD_NAME="Orange Pi Prime" BOARDFAMILY=sun50iw2 VERSION=5.60 LINUXFAMILY=sunxi64 BRANCH=next ARCH=arm64 IMAGE_TYPE=stable BOARD_TYPE=conf INITRD_ARCH=arm64 KERNEL_IMAGE_TYPE=Image
renard Posted December 29, 2019 Posted December 29, 2019 On 12/26/2019 at 10:39 AM, renard said: Yep. Confirm this with orange pi prime. No such package: # cat /etc/armbian-release # PLEASE DO NOT EDIT THIS FILE BOARD=orangepiprime BOARD_NAME="Orange Pi Prime" BOARDFAMILY=sun50iw2 VERSION=5.60 LINUXFAMILY=sunxi64 BRANCH=next ARCH=arm64 IMAGE_TYPE=stable BOARD_TYPE=conf INITRD_ARCH=arm64 KERNEL_IMAGE_TYPE=Image Update. Have no idea why it is not available in debian repos. But you may take and easily build it from this guy https://github.com/nicokaiser/usbmount or from my fork with small fix (made pull request for him also)https://github.com/kgara/usbmount mkdir -p /usr/src/ git clone https://github.com/kgara/usbmount/ --depth 1 cd ./ usbmount # Install dependencies sudo apt-get update && sudo apt-get install -y debhelper build-essential # Build sudo dpkg-buildpackage -us -uc -b # Install it dpkg -i ../usbmount_0.0.24_all.deb # Probably first time also with apt-get install lockfile-progs apt --fix-broken install # Clean rm ../usbmount_* Works perfect for me. Don't forget to edit config if you need permanent mount points from fstab: $ mcedit /etc/usbmount/usbmount.conf #MOUNTPOINTS="/media/usb0 /media/usb1 /media/usb2 /media/usb3 # /media/usb4 /media/usb5 /media/usb6 /media/usb7" MOUNTPOINTS=""
Superkoning Posted December 29, 2019 Author Posted December 29, 2019 Guys, Isn't it a ubuntu versus debian thing? Ubuntu has usbmount, debian hasn't. My armbian is Ubuntu based: "Welcome to Ubuntu Cosmic with Armbian Linux 5.1.16-cubox" HTH
Igor Posted December 29, 2019 Posted December 29, 2019 33 minutes ago, Superkoning said: Isn't it a ubuntu versus debian thing? The basic difference between Armbian and Ubuntu, Debian and their releases can be decoded from here:https://github.com/armbian/build/blob/master/lib/configuration.sh#L131-L251 Most of the packages are identical, but usually not the exact same version and dependencies could be different. Then there is a small section of strong differences where some packages are not present in one or another. Or named different. Since usbmount is not essential for us ... I wasn't even aware that it does not exists in Debian repositories while this happens from time to time. Don't know exactly why.
Aku Posted February 7, 2021 Posted February 7, 2021 I just wanted to share an update on this topic that I found elsewhere: The trick with setting `MountFlags=shared` does not work on Ubuntu 20.04 (Focal) The correct setting seems to be `PrivateMounts=no` . At least it worked for me. Source: https://unix.stackexchange.com/questions/330094/udev-rule-to-mount-disk-does-not-work/441588#441588
Recommended Posts