Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FSTab Config
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
u2mike
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 209

PostPosted: Sun Nov 09, 2003 12:40 am    Post subject: FSTab Config Reply with quote

Hey all,

I need to mount two fat32 partitions. They got all my documents/misc files I don't want deleted. I use fat32 becuase it can be read from just about anything. I want them to be automounted. The problem is only root can read/write to them! But I can go as a normal user, pass the umount, then mount command and then read/write on it. What do I need to do so the normal user can r/w without having to remount it every boot?

My fstab lines look like this:

Code:
/dev/hda5           /mnt/storage          vfat             auto,users,rw           0 0
/dev/hda9           /home/u2mike/documents          vfat             auto,users,rw           0 0
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Sun Nov 09, 2003 1:58 am    Post subject: Reply with quote

Sounds like a case for autofs.
Code:
man autofs

This is a daemon which is started at boot, and monitors attempts to access certain directories. When a user attempts to access, say, /mnt/storage it automatically mounts that partition, and unmounts it after some time when it's not used anymore.
Pretty handy for cdroms too.
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
u2mike
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 209

PostPosted: Sun Nov 09, 2003 5:19 am    Post subject: Reply with quote

emerging it right now :D


But I fixed my problem, after looking through lots of documentation, I changed it to look like this:

Code:
/dev/hda5           /mnt/storage          vfat             auto,users,exec,gid=1000,umask=0000           0 0
Back to top
View user's profile Send private message
cylgalad
Veteran
Veteran


Joined: 18 Apr 2003
Posts: 1327
Location: France

PostPosted: Sun Nov 09, 2003 12:15 pm    Post subject: Reply with quote

That's what I've been using for years :
Code:
/dev/hda1 /mnt/win_c vfat rw,iocharset=iso8859-15,codepage=850,umask=0 0 0

I think umask does the trick
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum