LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-28-2004, 02:01 AM   #1
lcdial
LQ Newbie
 
Registered: Mar 2004
Location: Boston, MA
Distribution: Mandrake 10 Community
Posts: 15

Rep: Reputation: 0
Permissions on FAT32 Partition


Hello everyone,

I'm trying to mount /dev/hda2 at /mnt/documents. hda2 is a FAT32 partition. Here is my fstab:

Code:
                                                                                                                           
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/BOOT             /BOOT                   ext2    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hdb4               swap                    swap    defaults        0 0
/dev/hda2               /mnt/documents          vfat    auto,user,users,umask=000,rw    0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1             /mnt/cdrom1             udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0
hda2 mounts fine, and as root I can read and write the drive, but as a user, I can only read. When I try to delete a file, I get this:

Code:
[lcdial@localhost My Documents]$ rm c97f53-sz.pdf
rm: cannot remove `c97f53-sz.pdf': Permission denied
[lcdial@localhost My Documents]$
This is just driving me batty! All the posts seem to indicate that setting umask=000 solves this problem! I don't know what else to try. Thanks in advance!
 
Old 03-28-2004, 02:38 AM   #2
muah
Member
 
Registered: Aug 2003
Location: Europe
Distribution: Slackware (current)
Posts: 228

Rep: Reputation: 33
Similar problem was discussed here
http://www.linuxquestions.org/questi...0&goto=newpost

You probably need to change permissions on the directory /mnt/documents for example to 777 (u will have to do it when there is nothing mounted in this directory so unmount it before u do it)
 
Old 03-28-2004, 03:18 AM   #3
lcdial
LQ Newbie
 
Registered: Mar 2004
Location: Boston, MA
Distribution: Mandrake 10 Community
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks for your response, and I wish that I could say that solved the problem. I had already set the permissions to 777. Here is an example of me (as root) writing to the directory, and being unable to as a user. Note the permissions on the documents directory:

Code:
[root@localhost mnt]# mount -a
[root@localhost mnt]# touch /mnt/documents/My\ Documents/testfile
[root@localhost mnt]# rm /mnt/documents/My\ Documents/testfile
rm: remove regular empty file `/mnt/documents/My Documents/testfile'? y
[root@localhost mnt]# exit
exit
[lcdial@localhost mnt]$ touch /mnt/documents/My\ Documents/testfile
touch: creating `/mnt/documents/My Documents/testfile': Permission denied
[lcdial@localhost mnt]$ ls -l
total 24
drwxr-xr-x    2 root     root         4096 Mar 27 22:55 cdrom
drwxr-xr-x    2 root     root         4096 Mar 27 22:55 cdrom1
drwxrwxrwx    6 root     root         8192 Mar 28 03:13 documents
drwxr-xr-x    2 root     root         4096 Mar 27 22:55 floppy
drwxr-xr-x    2 root     root         4096 Mar 27 18:58 storage
[lcdial@localhost mnt]$
I just don't know what to make of this!!!
 
Old 03-28-2004, 03:22 AM   #4
lcdial
LQ Newbie
 
Registered: Mar 2004
Location: Boston, MA
Distribution: Mandrake 10 Community
Posts: 15

Original Poster
Rep: Reputation: 0
I looked again at that thread, and I found the solution. While I had set permissions to 777 on the documents directory, I was trying to write to the subdirectory. A simple:
Code:
root$ chmod -R 777 documents/
fixed that. Thanks for your help!
 
  


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
How to format to FAT32, and how to mount my FAT32 partition. bonniehandi Linux - Newbie 16 03-05-2006 08:54 PM
Partition mounting/KDE errors after creating Fat32 Partition BertBert Linux - General 1 07-07-2004 11:59 AM
fat32 WinXP partition and permissions to use it, help!! KevinAlaska Fedora 1 06-06-2004 04:14 PM
problem changing file permissions on fat32 partition coolamit78 Linux - Software 4 01-18-2004 02:44 PM
permissions and mounted fat32 partition ianunderwood Linux - Newbie 8 06-25-2003 06:17 AM


All times are GMT -5. The time now is 04:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration