LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-22-2005, 07:50 PM   #1
macmichael01
LQ Newbie
 
Registered: Jun 2005
Location: Heaven
Posts: 6

Rep: Reputation: 0
Problems mounting Fat32


Hi I am having some mounting problems. I have 3 partitions, One is a linux, one is NTFS, and the other is FAT32. I have windows installed on NTFS and suse installed on the LINUX w/ swap FS. I have an apache webserver on windows and the web files are stored on the Fat 32 partition. Now when I run suse I have the server set up so that it will read the contents from the fat 32 as well. The problem that I am having is that I am getting permission error with some of my scripts. I tried to set the permissions on this partition from the drives:/ (right click permissions) but I get an error stating that it can perform this opperation. I read somewhere that fat 32 has to modes read and not read so I don't know if this is why I can't set the permissions or what. Any suggestions?
 
Old 06-23-2005, 06:05 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
You can set permissions for FAT32 drives with the umask parameter in /etc/fstab. umask=000 will set full permissions on all files for all users. You can also change the user/group of the partition by using 'uid='/'gid='.
 
Old 06-24-2005, 01:06 PM   #3
macmichael01
LQ Newbie
 
Registered: Jun 2005
Location: Heaven
Posts: 6

Original Poster
Rep: Reputation: 0
Sorry for the late reply!! So if I go to that directory and do what you stated, I should have have full access to everything. Can I specify individual file and folder permissions as well? I noticed the directory that you told me to goto would be located on the linux partition, how will modifying something on the linux partition give me certain privalages to what is on the fat 32 FS.
 
Old 06-24-2005, 01:59 PM   #4
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Quote:
how will modifying something on the linux partition give me certain privalages to what is on the fat 32 FS
As you know, a partition needs to be 'mounted' to gain access to its data. This mounting is either performed manually with the 'mount' command, or done by the system, using the information in /etc/fstab. This is why a parameter in /etc/fstab can influence the partition that is mounted.
The problem with FAT32 is that it does not 'know' specific user permissions. Everyone who has access to the computer has access to the files. Linux filesystems however, use a permissions system that distinguishes between the owner, group and the rest of the world's users. The umask paramter in /etc/fstab tells Linux how to interpret the data on the FAT32 partition. It sets a mask for the whole partition. Unfortunately this does not allow the modification of single files and folders. You can only change the permissions of the entire partition.
 
Old 06-25-2005, 09:11 AM   #5
macmichael01
LQ Newbie
 
Registered: Jun 2005
Location: Heaven
Posts: 6

Original Poster
Rep: Reputation: 0
so could I think of mounting as a pointer. The current pointer says that I only have access to read Fat32 so now I need to tell the "pointer" to read and write.


Thanks for your help.
 
Old 06-25-2005, 12:45 PM   #6
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Quote:
Originally posted by macmichael01
so could I think of mounting as a pointer. The current pointer says that I only have access to read Fat32 so now I need to tell the "pointer" to read and write.
In a way, yes. Mostly the problem occurs when a FAT32 drive is mounted through /etc/fstab with the default values. The defaults allow read and write access, but give access only to the user that has mounted the drive. And this is root. So you have two options to change that:

1. mount as another user. This is done with the parameter uid=<your user id>
2. still mount as root (default), but give write access to all users. umask=0 will do this.

Have fun with Linux!
 
  


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
mounting fat32 gachejad Fedora 2 09-30-2005 10:33 AM
Problems mounting a fat32 partition under linux (slack 9.1) cyberone Linux - Software 3 01-18-2004 06:57 AM
mounting fat32 jedavies123 Linux - General 1 11-03-2003 08:25 PM
rh9: mounting fat32 and grub problems psicokhel Linux - General 6 09-17-2003 10:52 PM
mounting fat32 snow Linux - Software 25 09-07-2003 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 10:45 AM.

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