You are not logged in.
Pages: 1
Hello,
I have a memory card that I want to mount manually on /mnt/sd and to have read and write permissions once mounted. My /etc/fstab is as follows
UUID=3461-6339 /mnt/sd exfat noauto,rw,user,suid,uid=1000,gid=1000 0 0Why do I get "Failed to open /dev/...Permission denied" when I mount it?
I don't know if this is relevant. The directory /mnt/sd has permissions 775, root ownership, and storage group ownership. I am in the storage group.
Thanks for the help
Last edited by doubleslash (2018-08-08 16:35:50)
Offline
Exact mount command and error message, please?
(It would seem to fail accessing the block device, so you should also paste "stat /dev/<whatever>")
Offline
Exact mount command and error message, please?
I run
mount /mnt/sdand get the error
FUSE exfat 1.2.8
ERROR:failed to open '/dev/mmcblk1p1': Permission deniedIt would seem to fail accessing the block device, so you should also paste "stat /dev/<whatever>"
The output of stat /dev/mmcblk1p1 is
File: /dev/mmcblk1p1
Size: 0 Blocks: 0 IO Block: 4096 block special file
Device: 6h/6d Inode: 12406 Links: 1 Device type: b3,19
Access: (0660/brw-rw----) Uid: ( 0/ root) Gid: ( 994/ disk)
Access: 2018-08-07 11:44:32.377546723 -0700
Modify: 2018-08-07 11:43:24.514210839 -0700
Change: 2018-08-07 11:43:24.514210839 -0700
Birth: -Offline
Everything fine here, but mount.exfat isn't SUID and apparently not leveraged by mount either.
sudo chmod u+s /usr/bin/mount.exfat-fuseBut this will
a) be overridden w/ the next exfat-utils update
b) maybe allow you to "mount.exfat /dev/foo /mnt/bar" as user and w/o any fstab entry.
Offline
I did 2 things and the problem is solved:
1. I found the user and group ownerships of the device ( by running ls -l /dev/mmcblk1) to be root and disk. After adding myself to the disk group, the permission error went away. However, I received error messages from fuser.
2. Then, I ran the command you suggested
sudo chmod u+s /usr/bin/mount.exfat-fuseand the problem went away. I can mount as non-root and have read and write permissions.
But this will be overridden w/ the next exfat-utils update
What can I do so I won't ever have to mess around with this in the future? I spent literally several hours on this. Wouldn't want to go through the same ordeal again.
Offline
Add a pacman hook, file a bug to the package.
But be weary about the other caveat (you may allow random mounts to everyone).
Also, in case you file a bug, please be exact: it's especially not a "vfat" mount.
Offline
Pages: 1