Re: Read-only flash drives

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

 



On 26/11/2020 16:35, Joe Zeff wrote:
On 11/26/20 12:34 AM, Ed Greshko wrote:
FWIW, I have a Ubuntu VM and the same flash drive that I used on Fedora works the same way on
it.  The system mounts it for me, as me.  It is ubuntu 20.04 if that makes any difference.

Most of the time, flash drives mount properly for my sister too. Once in a while this comes up for her and/or for me, and I was hoping to get a handle on how to deal with the issue once and for all.

The next time it happens to you check which file system type is on the drive.

FAT and VFAT don't have ownership written to them as Samuel explained.  And, as I said, I've never
encountered issues with them.

However, file systems such as ext4 do carry ownership information.

So, if a flash drive was formatted with ext4 and not previously mounted, or ownership
wasn't established it would mount as root:root

I have a flash drive which was formatted ext4 and used by maria who changed the top level ownership.

So, when I plug it in and hit "mount" it get mounted....

[egreshko@meimei ~]$ whoami
egreshko

[egreshko@meimei ~]$ df -T | grep media
/dev/sdg1          ext4    7654088      17232    7228332   1% /run/media/egreshko/ADrive

[egreshko@meimei ~]$ ll -d /run/media/egreshko/ADrive
drwxr-xr-x. 3 maria maria 4096 Nov 26 16:46 /run/media/egreshko/ADrive

The expected behavior.

---
The key to getting good answers is to ask good questions.

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[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