View previous topic :: View next topic |
Author |
Message |
u2mike Apprentice
Joined: 06 Nov 2003 Posts: 209
|
Posted: Sun Nov 09, 2003 12:40 am Post subject: FSTab Config |
|
|
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 |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Sun Nov 09, 2003 1:58 am Post subject: |
|
|
Sounds like a case for 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 |
|
|
u2mike Apprentice
Joined: 06 Nov 2003 Posts: 209
|
Posted: Sun Nov 09, 2003 5:19 am Post subject: |
|
|
emerging it right now
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 |
|
|
cylgalad Veteran
Joined: 18 Apr 2003 Posts: 1327 Location: France
|
Posted: Sun Nov 09, 2003 12:15 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|