LinuxQuestions.org
Register a domain and help support LQ
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 05-26-2004, 12:28 PM   #1
BuckeyeFan
LQ Newbie
 
Registered: May 2004
Distribution: SuSE
Posts: 4

Rep: Reputation: 0
Can't get fstab right to let user r/w fat32 parts


I know there are a lot of posts on this so I have spent a few days searching them and trying the suggestions but nothing has worked so I need a unique answer I think.

My problem is that I can't seem to get access to fat32 partitions used by XP under user account, only root. I can unmount under root, and mount as user and read/write to them just fine, but would like to boot with access for user because I keep certain things I use in both OS's like wallpapers and icons on one of the fat32's to save space but then they wont load when I boot. Also, if I edit fstab to read noauto, or add user or make other edits, new entries for the fat32 partitions magically appear in the fstab after rebooting. You can see it below.

Distro: CollegeLinux 2.5, which is based on Slack

Here is output of cat fstab:

none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
none /dev/pts devpts defaults 0 0
/dev/hda6 / ext3 defaults 1 1
/dev/hda8 swap swap defaults 0 0
/dev/hda7 /usr ext3 defaults 1 2
/dev/hdc
/mnt/cdrom iso9660 noauto,users,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,users 0 0

/dev/hda1 /mnt/c vfat noauto,user 0 0

/dev/hda2 /mnt/d vfat noauto,user 0 0

/dev/hda5 /mnt/hda5 auto defaults 0 0

/dev/hda6 /mnt/hda6 auto defaults 0 0

/dev/hda7 /mnt/hda7 auto defaults 0 0
none /proc/bus/usb usbdevfs defaults 0 0
/dev/hda1 /mnt/hda1 auto defaults 0 0

/dev/hda2 /mnt/hda2 auto defaults 0 0


Those last two entries just show up every time I reboot regardless of what changes I make, so I don't know what I'm missing. I used SuSE 9.0 previously where it mounts everything nicely for me so I don't know exactly how to do this. Please help.
 
Old 05-26-2004, 12:58 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
only $ROOT can write to a vfat partition, users
have read permissions and that is about it........
safer that way
 
Old 05-26-2004, 01:15 PM   #3
BuckeyeFan
LQ Newbie
 
Registered: May 2004
Distribution: SuSE
Posts: 4

Original Poster
Rep: Reputation: 0
Smile

Well, like I said I can read/write as user if I unmount as root first, and in SuSE 9.0, I didn't even have to do that, it was automatically configured to allow read/write for all users to the windows partitions which I what I want. And I know its safer to only login as root when necessary, but if I can't get this to work I'd rather login as root every time or go back to windows altogether (ok just kidding about the last part).
 
Old 05-27-2004, 10:41 AM   #4
TACD
LQ Newbie
 
Registered: Aug 2003
Location: Merrie Olde England
Distribution: SUSE 9.1 Personal
Posts: 23

Rep: Reputation: 15
I have the same problem... what do I need to add to my fstab to let me write to my FAT32 partitions as a normal user? Here's how it looks at the moment...

Code:
/dev/hda5            /                    reiserfs   acl,user_xattr        1 1
/dev/hda2            /boot                ext2       acl,user_xattr        1 2
/dev/hda7            /home                reiserfs   acl,user_xattr        1 2
/dev/hdb1            /mnt/games           vfat       user,iocharset=iso8859-1 0$
/dev/hdb5            /mnt/media           vfat       user,iocharset=iso8859-1 0$
/dev/hda1            /mnt/windows         vfat       iocharset=iso8859-1   0 0
/dev/hda6            swap                 swap       pri=42                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
proc                 /proc                proc       defaults              0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
sysfs                /sys                 sysfs      noauto                0 0
/dev/cdrecorder      /media/cdrecorder    subfs      fs=cdfss,ro,procuid,nosuid$
/dev/fd0             /media/floppy        subfs      fs=floppyfss,procuid,nodev$
I don't want to be able to write to the Windows partition as a user, but I would like to be able to write to the other two (for example, so I can burn CDs in Linux and store the files in my media partition without having to su just to copy them over!)
 
Old 05-27-2004, 10:07 PM   #5
BuckeyeFan
LQ Newbie
 
Registered: May 2004
Distribution: SuSE
Posts: 4

Original Poster
Rep: Reputation: 0
Ok, I got it figured out finally. The Mandrake club forum is to thank for the original post I guess. When I finally got it to work after three days of trying I got up and did a little dance. Anyway... You'll probably want to back up your fstab first, then...

To /etc/fstab, I added the following entry:

/dev/hda2 /mnt/hda2 vfat umask=0,quiet 0 0

And deleted the previous entry for dev/hda2 which was something like /dev/hda2 /mnt/hda2 auto defaults 0 0
Note: in your case, you would replace

/dev/hda1 /mnt/media vfat iocharset=iso8859-1 0 0

with

/dev/hda1 /mnt/media vfat umask=0,quiet 0 0

where you could insert tabs if you want like in your fstab, but notice spacing is very important from the umask part on... don't put a space after that comma or I don't think it will work. In any event, works great for me. Hope it does for you.

Patrick
 
  


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
Fstab fat32 --> writable by all users jasone Linux - Newbie 3 12-14-2010 03:16 AM
fstab, fat32, permissions. isaac_e Slackware 7 02-01-2010 10:13 PM
why won't my fat32 partitions show up in fstab lailoken Linux - Newbie 8 04-21-2004 02:44 PM
mounting fat32 in fstab true_atlantis Linux - Newbie 2 01-14-2004 05:46 PM
mount fat32 in fstab in gentoo, user privs yowwww Linux - General 1 08-22-2003 05:36 PM


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