Issue
- I have an exfat formatted drive.
- I'm able to unmount and mount it on an ubuntu 20.04 desktop.
- I can read files from it, however, I can only write files as root/sudo user. I've tried a lot of different settings with no success. Saw some comments about allow_other flag using fuseblk which I couldn't get fuseblk working.
I was able to use the ubuntu graphical disks application to mount and unmount. But still had issues with non root write permission.
Some other commands:
mkdir /home/drive1
mount pointsudo umount -f -l /home/drive1
force umount drivecode /etc/fstab
using visual studio code to open fstab and modify mount permissionssudo mount -a
mount all drives in /etc/fstab, used to verify that mount settings aren't broken- chown won't work for nfs and fat drives
- chmod 777 also won't work although there are some comments on +x executable working
test user access
cd /home/drive1
mkdir test
failssudo mkdir test
workstouch file.txt
failssudo touch file.txt
works
mount attempts:
sudo mount /dev/sdb2 /home/drive1 -o rw,uid=yourusername,gid=yourusername
, sudo still required to write files- id yourusername
sudo mount -t vfat /dev/sdb2 /home/drive1 -o rw,umask=0000
runs but root still requiredsudo mount -t exfat /dev/sdb2 /home/drive1 -o uid=1000,gid=1000
same issuesudo mount -t exfat /dev/sdb2 /home/drive1 -o rw,allow_other,umask=0000
fails to mount with allow_other
purpose
- trying to use external auto mounted exfat formatted drive as a volume for a docker container, read working, but write failing (even in docker container privileged mode)
current solution
- since I wasn’t able to get any progress I decided to use nfs format instead which didn’t have this sudo issue. I could also try fedora instead and see if it still has the sudo exfat issue.