linux programs can't access files on fat32 partition?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
linux programs can't access files on fat32 partition?
I use Pascal as a programming language, and compile with fpc. Everything works fine when both the program and the files it needs to access are on a linux partition, but on a windows one, I get the permission denied error (even if i am logged as root).Permisions are set for read/write/execute for both root and user group (the file is -rwxrwxr-x) just like it is on linux partitions.
Is this simply not supported by Linux or do I need to do something else?
the classical way to set a storage volume to be shared between win and linux have been fat32 systems. But this solution has two drawbacks: the permission thing and the problem with large files. fat32 can't store files > 2GB.
fat32 cannot store files bigger than 4GB.... maybe 2GB is fat16
Also as for your permissions, have you tried mounting the partition with the umask=000 option that'll give the files 777 permissions (no good chmod'ing anything, because as stated, the files cannot have unix-like permissions).
What if you try and write files to it, does it allow it?
Yes, I can read/write to it. Yes, I can do everything I want with that partition except for this tiny problem.
The partition is mounted with umask=002 (0775 permissions). Theoretically, if it were to work, it should work for any root/user run program that tries to read/write from/to a file there. I will experiment more, doing also what you suggested. Maybe the simplest solution would be reformatting it in a linux partition, I don't use windows much anyway...
Anyway, I got it with the permissions now - not for windows partitions. Thanks again and sorry for my noob question.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.