usbmount icon indicating copy to clipboard operation
usbmount copied to clipboard

Problem with exFAT filesystem

Open gurvancodying opened this issue 6 years ago • 8 comments

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

gurvancodying avatar Jul 05 '18 04:07 gurvancodying

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.

mathieulj avatar Aug 05 '18 21:08 mathieulj

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)

andyk75 avatar May 03 '19 14:05 andyk75

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

UberEclectic avatar May 04 '19 02:05 UberEclectic

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

thelazyanalyst avatar Aug 04 '19 11:08 thelazyanalyst

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/

spuiuk avatar Oct 09 '19 12:10 spuiuk

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

mathieulj avatar Oct 09 '19 13:10 mathieulj

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

spuiuk avatar Oct 09 '19 14:10 spuiuk

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

martinjr85 avatar Sep 10 '21 03:09 martinjr85