Re: Mounting exfat usb stick

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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@f22k ~]# exfatlabel /dev/sdb1 myexfat
[root@f22k ~]# exfatlabel /dev/sdb1
myexfat

[root@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@f22k ~]# grep mnt /etc/fstab
LABEL=myexfat   /mnt    exfat noauto,rw,user,uid=1029,gid=65539 1 1

[root@f22k ~]# cat /etc/fuse.conf
# mount_max = 1000
# user_allow_other

[root@f22k etc]# mount /mnt
FUSE exfat 1.1.0

[root@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@f22k /]$ cd mnt
[egreshko@f22k mnt]$ ls
[egreshko@f22k mnt]$ touch x

Then as root....

[root@f22k etc]# cd /mnt
[root@f22k mnt]# ls
x
[root@f22k mnt]# touch y
[root@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@f22k mnt]# su - maria
[maria@f22k ~]$ cd /mnt
[maria@f22k mnt]$ ls
x  y
[maria@f22k mnt]$ touch z
[maria@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@f22k mnt]# ls
x  y  z
[root@f22k mnt]# cd
[root@f22k ~]# pwd
/root
[root@f22k ~]# cp avail.txt /mnt
[root@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.

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux