Mounting exfat usb stick

jd1008 jd1008 at gmail.com
Fri Jul 31 16:09:15 UTC 2015



On 07/30/2015 10:03 PM, Ed Greshko wrote:
> On 07/31/15 09:16, jd1008 wrote:
>> $ grep sdc1 /etc/fstab
>> UUID=BE5F-383B     /sdc1   exfat   noauto,rw,user,uid=508,gid=508                1 1
>>
>> # cat /etc/fuse.conf
>> # mount_max = 1000
>> user_allow_other
>>
>> $ mount /sdc1
>> FUSE exfat 1.0.1
>> fusermount: option blkdev is privileged
>>
>> So I tried as root, and it mounted OK:
>> mount | grep sdc1
>> /dev/sdc1 on /sdc1 type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=508,group_id=508,allow_other,blksize=4096)
>>
>>
>> then as root I tried to copy a file to /sdc1:
>>
>> # cp rpms.list /sdc1/
>> cp: cannot create regular file ‘/sdc1/rpms.list’: No such file or directory
>>
>>
>> So, what else need I do so that regular users can mount and write to usb sticks that are formatted as exfat FS?
>>
>> These are the relevant rpms installed:
>> fuse-exfat-1.0.1-1.fc20.x86_64
>> exfat-utils-1.0.1-1.fc20.x86_64
>>
> Tried to recreate your issue.  I didn't have a exfat formatted USB so I used mkfs.exfat to create. Then I labeled it....
>
> I didn't do things "exactly" as you did but....
>
> [root at f22k ~]# exfatlabel /dev/sdb1 myexfat
> [root at f22k ~]# exfatlabel /dev/sdb1
> myexfat
>
> [root at f22k ~]# exfatfsck /dev/sdb1
> xfatfsck 1.1.1
> WARN: volume was not unmounted cleanly.
> Checking file system on /dev/sdb1.
> File system version           1.0
> Sector size                 512 bytes
> Cluster size                 32 KB
> Volume size                1928 MB
> Used space                    4 MB
> Available space            1924 MB
> Totally 0 directories and 0 files.
> File system checking finished. No errors found.
>
> [root at f22k ~]# grep mnt /etc/fstab
> LABEL=myexfat   /mnt    exfat noauto,rw,user,uid=1029,gid=65539 1 1
>
> [root at f22k ~]# cat /etc/fuse.conf
> # mount_max = 1000
> # user_allow_other
>
> [root at f22k etc]# mount /mnt
> FUSE exfat 1.1.0
>
> [root at f22k etc]# mount | grep sdb1
> /dev/sdb1 on /mnt type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,allow_other,blksize=4096,user)
>
> As me...
>
> [egreshko at f22k /]$ cd mnt
> [egreshko at f22k mnt]$ ls
> [egreshko at f22k mnt]$ touch x
>
> Then as root....
>
> [root at f22k etc]# cd /mnt
> [root at f22k mnt]# ls
> x
> [root at f22k mnt]# touch y
> [root at f22k mnt]# ll
> total 0
> -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 x
> -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 y
>
> Then as another user...
>
> [root at f22k mnt]# su - maria
> [maria at f22k ~]$ cd /mnt
> [maria at f22k mnt]$ ls
> x  y
> [maria at f22k mnt]$ touch z
> [maria at f22k mnt]$ ll
> total 0
> -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 x
> -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 y
> -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:45 z
>
> And again as root....
>
> [root at f22k mnt]# ls
> x  y  z
> [root at f22k mnt]# cd
> [root at f22k ~]# pwd
> /root
> [root at f22k ~]# cp avail.txt /mnt
> [root at f22k ~]# ll /mnt
> total 3584
> -rwxr-xr-x. 1 egreshko egreshko 3655878 Jul 31 11:46 avail.txt
> -rwxr-xr-x. 1 egreshko egreshko       0 Jul 31 11:44 x
> -rwxr-xr-x. 1 egreshko egreshko       0 Jul 31 11:44 y
> -rwxr-xr-x. 1 egreshko egreshko       0 Jul 31 11:45 z
>
>
I will get back to you after I I retry your steps.



More information about the users mailing list