same fstab, new problems
I recentlly made the step to Sarge and last night as I was trying to listen to some music I observed that I couldn't access my vfat partitions.
How is that possible? I made no change to the fstab and as the man page says no program will edit this file...I didn't edit it, the progs didn't so want is the problem? I have all my music on my vfat partition (M$ legacy) and I had to listen music from windoze!!! I hate it!!! |
Have you tried mounting it from the console?
Whats your fstab looklike? Hows the harddrives setup? |
Quote:
the drive is mounted on startup but a normal user can't access it.. Quote:
Code:
# /etc/fstab: static file system information. They are now like this because I tried some other combinations to see if they work |
Does it work without auto?
Also try using auto as the filesystem type, see if that help. |
It works with auto, but only root can browse the /mnt/xxxx dirs (vfat ones)
|
try adding nosuid to the options
Edit: and or users |
Quote:
|
Direct from man mount:
users: Allow every user to mount and unmount the file system. This option implies the options noexec, nosuid, and nodev (unless overridden by subsequent options, as in the option line users,exec,dev,suid). Users could replace user, nosuid is a slightly diffrent option, and would have to be put in as well as user. (but is unecssary with users) If that makes sense. |
In the options section, add in "gid=<your group name>,uid=<your user number>". That should work. I think the mount commands work slightly differently under woody and sarge. That's what caused the problem...
|
A group???
So, the elegant way would be to insert a gid=vfat_users and insert in that group whomever I want to access the vfat drives!!!
Ok, I will try this too. the nosuid option had no effect only that I could mount the volumes when they were unmounted. |
Yeah. You could also add in the group number of the users group (gid=100, I think). The user part if I recall is also pretty important. Try the group thing first and if that works then great. If not then you'll have to put in the uid option. I recall that there was a time that I didn't have to do this but recently, I did have to. Hence I believe that the newer version of mount works differently. I've always had to specify those options with ntfs, though. Linux is a lot pickier with ntfs. I don't run windows on this computer so I haven't messed around with those settings for a while now.
You may also want to change the "user" option to "users", and ditch the "noexec" and "default" options. I think that's what I had and it worked. At some point I even specified a "umask" option though I don't remember whether that was for the ntfs partition or for the vfat... |
the gid option didn't work
when I run mount it says that the partitions are owned by the vfatusr - the group I made. My user is a member of vfatusr, also the root is a memeber.
This is the output Code:
/dev/hda1 on / type ext3 (rw,errors=remount-ro) Any Ideas?!?!? I will try the user group thing and so on... I will inform u aboutr the results... |
Also try adding umask=000, to allow everyone to read and write, or umask=002 to only allow group and owner to rw, and user to ro.
|
"umask=000" stops everyone from reading and writing. You can try to "uid=<your user number>" option and possibly the umask=007.
|
umask, uid, gid?
umask might be ok, gud might be ok(it doesn't work - at least now), but uid in fstab that's too much!!!!
What if I had a server that shared one partition over samba and I had 100 users that use the parttion?!?!?! that is just too much work (ok, it can be done through scripts) and gets fstab to giant sizes!!! |
All times are GMT -5. The time now is 02:06 PM. |