Are you trying with multiple USB drives plugged in? I would stick with 1 until one works.
It looks like one mounted. What do the “lsblk”, “blkid”, and “ls /media/usb0” commands show?
If the permissions are wrong you can set those in usbmount.conf under FS_MOUNTOPTIONS. vfat filesystems don’t support permissions so they have to be set when mounting.
“volume was not unmounted cleanly” can generally be ignored. It should still work. If all else fails you can always do “sudo mount /dev/sda1 /media/usb0 -o uid=pi,gid=pi” to mount the drive and see if it works.
I’ve just got one drive plugged in - I switched to a Toshiba - exfat, because I thought it might be the drive giving problems.
pi@rachel:~ $ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.8T 0 disk
├─sda1 8:1 0 200M 0 part /media/usb1
└─sda2 8:2 0 1.8T 0 part /media/usb0
mmcblk0 179:0 0 59.6G 0 disk
├─mmcblk0p1 179:1 0 256M 0 part /boot
└─mmcblk0p2 179:2 0 59.4G 0 part /
pi@rachel:~ $ blkid
/dev/mmcblk0p1: LABEL_FATBOOT="boot" LABEL="boot" UUID="B6BB-0F0E" TYPE="vfat" PARTUUID="29a2fca6-01"
/dev/mmcblk0p2: LABEL="rootfs" UUID="638417fb-7220-47b1-883c-e6fee02f51ac" TYPE="ext4" PARTUUID="29a2fca6-02"
pi@rachel:~ $ ls /media/usb0
ls: cannot access '/media/usb0': Transport endpoint is not connected
pi@rachel:~ $
I edited FS_MOUNTOPTIONS based on one of the links you gave me, but I just noticed there was a
line break after the first group, I’m going to try replacing the vfat entry with the one you gave me and restart
I would just format it to ext4 and use it with Linux if you’re on a time crunch. The issue seems like it’s just around mounting other file systems. If you have to use it outside of linux I would try formatting it to NTFS instead of exFat and follow those NTFS instructions in that link.
I just installed Raspbian Desktop to start with and it doesn’t have usbmount installed by default.
pi@raspberrypi:~ $ sudo apt-get install usbmount
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
liblockfile-bin liblockfile1 lockfile-progs pmount
Suggested packages:
cryptsetup
The following NEW packages will be installed:
liblockfile-bin liblockfile1 lockfile-progs pmount usbmount
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 142 kB of archives.
After this operation, 634 kB of additional disk space will be used.
Do you want to continue? [Y/n]
so that confirms this is just about the usbmount setup and not the distro. I’ll have to dig through the iiab installer to find out exactly where they do the usbmount setup to see what the difference is. Their installer is pretty convoluted.
It looks like they use templates to install packages and files and those are in .yaml files, One interesting thing is that it looks like they add other repositories to the sources list. I wonder if they use a usbmount from an ubuntu or other repo.
I couldn’t find anything different in IIAB’s configuration that would make it work other than that I think they add some alternative sources for packages in their install process. I just got a Raspberry Pi 4 yesterday so I’m looking at everything again now. I’ll let you know if I find anything but I think an alternative to usbmount is probably necessary for multiple reasons.
Okay so the issue is 100% the usbmount package Raspbian Buster provides. The final comment from this solution that builds the package from the git works for me. From a fresh install of Raspbian Buster this is my process.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git
sudo apt-get install debhelper
sudo apt-get install exfat-fuse
cd /var/tmp
git clone https://github.com/rbrito/usbmount.git
cd usbmount
sudo dpkg-buildpackage -us -uc -b
cd ..
sudo apt install ./usbmount_0.0.24_all.deb
change /etc/usbmount.conf file systems to FILESYSTEMS="vfat ext2 ext3 ext4 ntfs-3g ntfs exfat hfsplus fuseblk"
sudo reboot now
This worked for me with exfat and the drive gets mounted to /media/usb0 or /media/usb1. No extra settings or files required. Hope that works for you.
No problem. It worked for me with the RACHEL-Pi image for the Pi4/Buster I made but there does seem to be a boot issue where it won’t boot if you’ve got Raspbian on a MicroSD and a USB drive plugged in at boot. That’s an old bug that I thought was gone but I know they’re working on the USB boot support for the 4 so we’ll see. You may have to plug the drive in after boot.