rbrito / usbmount

Simple set of scripts to automount removable devices for a Linux system
273 stars 86 forks source link

Problem with exFAT filesystem #14

Open gurvancodying opened 6 years ago

gurvancodying commented 6 years ago

Dears, I use your script for an automated display with possibility to update content from usb key. With normal usb key it work fine but if i use exFAT usb key it doesn't work. I try may possibilities with installation of packages ntfs-3g, fuseblk, etc... add options on usbmount.conf but it doesn't work. Without additional packages i have error on mountpoint. It doesn't know exfat filesystem. After installation of additional packages, nodify usbmount.conf file, it know that it's exFAT filesystem and mount it but he doesn't start personal scripts in mount.d folder. It doesn't unmount correctly usb key and cratch my raspberry.

Could you help me about it?

Thanks a lot for your work

mathieulj commented 5 years ago

Sounds like it may be related to #11. Unfortunately I was unable to reproduce/understand fully the cause of that issue and the reporter found their own workaround.

andyk75 commented 5 years ago

I have experienced a similar issue. I tried to use usbmount to mount an SD-card with exfat filesystem on a raspberry pi. I installed the exfat-fuse and exfat-utils and now the SD-card is mounted, but not with exfat but with fuseblk! And this creates the situation, that the mounted volume is not accessible and creates an "ls: cannot access '/media/usb0': Transport endpoint is not connected"error when I try to access it. And fuseblk is not even on the list of filesystems: FILESYSTEMS="vfat ext2 ext3 ext4 hfsplus exfat" I then tried to mount the card manually with "sudo mount -t exfat /dev/sdb1 /media/usb0" and it also shows up as fuseblk in the mount-list. This is the line from calling "mount" after manually mounting the device: /dev/sdb1 on /media/usb0 type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096) This is the line when usbmount mounted the card: /dev/sdb1 on /media/usb0 type fuseblk (rw,nosuid,nodev,noexec,noatime,user_id=0,group_id=0,allow_other,blksize=4096)

UberEclectic commented 5 years ago

FWIW, exfat will need fuseblk, similar to ntfs-3g, since both rely on FUSE. But for unknown reasons, the following still is not sufficient:

FILESYSTEMS="vfat ext2 ext3 ext4 hfsplus fuseblk exfat"

I still get:

cannot access '/media/usb0': Transport endpoint is not connected

I am trying to adapt the following article about NTFS for use with exFAT, but still am not having any luck. :-(

https://raspberrypi.stackexchange.com/questions/41959/automount-various-usb-stick-file-systems-on-jessie-lite

thelazyanalyst commented 4 years ago

As @UberEclectic mentions, I have the same issues on my rpi3 B+ running Raspbian buster.

spuiuk commented 4 years ago

I was debugging the same problem. This is caused because the fuse background process which implements the filesystem will get killed and attempts to access the mount point will fail with the "Transport endpoint is not connected" error. This problem should affect all fuse based filesystems mounted with usbmount.

I am not trying to figure out how to workaround this problem.

Ref: https://yakking.branchable.com/posts/systemd-2-udevd/

mathieulj commented 4 years ago

@spuiuk Are you using the latest build? As I understood the issue you describe, https://github.com/rbrito/usbmount/pull/6 should have fixed it.

spuiuk commented 4 years ago

@mathieulj , I used usbmount available in the ubuntu 18.04.3 LTS release. This unfortunately is version 0.0.22 which according to the changelog was last updated in Aug 2011. https://packages.ubuntu.com/bionic/admin/usbmount

Sorry about that, it is entirely my mistake. It works fine with version 0.0.24 which I built from the git repo. I have uploaded the new package to http://spui.uk/usbmount/usbmount_0.0.24_all.deb if someone else wants to test it.

martinjr85 commented 2 years ago

@spuiuk The 0.0.24 package worked like a charm for me for exfat