Jump to content

Recommended Posts

Posted

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

 

Posted
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

Posted
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:~$
"

Posted

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

 

Posted
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

 

Posted
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=""

 

Posted

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

Posted
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. 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines