LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 07-29-2006, 12:28 PM   #1
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Rep: Reputation: 30
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?
 
Old 07-29-2006, 12:43 PM   #2
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
to my knowledge, fat32 systems do not support permissions at all.
 
Old 07-29-2006, 12:52 PM   #3
WhiskeyTangoFoxtrot
Member
 
Registered: Oct 2005
Location: Windsor, Ontario, Canada
Distribution: Fedora Core 5,4,3 & Ubuntu 6.06, 8.10
Posts: 403
Blog Entries: 1

Rep: Reputation: 30
true, all fat partitions have no permisions settings.
 
Old 07-29-2006, 01:03 PM   #4
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
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.
 
Old 07-29-2006, 03:14 PM   #5
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
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?
 
Old 07-29-2006, 08:27 PM   #6
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Original Poster
Rep: Reputation: 30
Thanks for all the quick replies.

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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sharing files between linux and windoze. Re format NTFS partition to FAT32? baldox Linux - Newbie 6 12-21-2006 11:01 PM
I cannot execute programs from Fat32 partition lamiczka Linux - Software 7 02-13-2005 01:06 PM
How can I access files in my Windows 98 partition from my Linux partition, /w BASH? Fabyfakid Linux - Newbie 4 09-17-2004 11:05 PM
WinXP can't read linux files copied to FAT32 partition gdh Linux - General 1 08-07-2004 10:31 AM
Access files on a fat32 partition? warrant6767 Linux - Hardware 2 06-30-2004 05:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration