Click to See Complete Forum and Search --> : user access to vfat partitions?


bobtcowboy
07-31-2001, 04:58 AM
Hey all... having troubles with my partitions.... here's the relavent snip of /etc/fstab:


/dev/hda5 /windows/d vfat defaults,user,exec,rw 0 0


at least thats what I thought I was supposed to put from my readings of Running Linux, 3rd ed., man fstab, and man mount

basically the problem is this: I can access the files just fine as any user, but I can't edit/move/delete the files as any other user but root (so, basically no write access for anyone but root)

and whats even more annoying is that I can't change this! I can't figure out how to give full rights to them.... I've tried using chmod, chown, chgrp... and I get permissions errors (as root)...

is there something obvious I'm missing?

Bill

Malakin
07-31-2001, 09:19 AM
Your permissions on /dev/hda5 maybe?

Silent Bob
07-31-2001, 09:30 AM
FAT partitions don't have the same kind of file attributes as native Linux partitions. That would explain not being able to change file permissions.

Try using /dev/hda5 /windows/d vfat defaults 0 0 in your fstab instead of what you have.

bobtcowboy
07-31-2001, 02:54 PM
Originally posted by Silent Bob:
<STRONG>Try using /dev/hda5 /windows/d vfat defaults 0 0 in your fstab instead of what you have.</STRONG>

Nope, no dice... same permissions errors.

Changing the permission of /dev/hda5 didn't change it either :o/

Bill

r0nster
07-31-2001, 03:16 PM
I may have a solution for your errors. If you are the only one who accesses the win partitions and if you want to be able to edit/delete/etc to the files, try this in your fstab. First, look up your user id with the id command.
Then as root, edit your fstab file and give these following options for your win partition(s): Treat mine as an example.
/dev/hda1 /win vfat rw,users,uid=1000,mode=755 1 0
My user id is 1000 so that assigns the permissions to you, so only you (and root) can edit and delete files. Unmount and remount your win partition(s) after you make changes to your fstab and see what happens. It works for me anyway :)

Linuxcool
07-31-2001, 11:28 PM
Try:
/dev/hda5 /windows/d vfat noauto,user,rw 0 0

If you want it to auto mount then change ' noauto ' to ' auto '.

If this doesn't work, then check the permissions on the /windows and /d directories.

bobtcowboy
07-31-2001, 11:53 PM
Originally posted by r0nster:
<STRONG>
/dev/hda1 /win vfat rw,users,uid=1000,mode=755 1 0
</STRONG>

awesome! that worked! you rule!

on a side note, what the difference between auto-mount and supermount?

or I could just RTFI....

Bill