Problem with writing on fat filesystem

I have a hard drive with fat32 partition (/dev/hdb1 1 784 6297448+ c W95 FAT32 (LBA). I have added this drive to my fstab file for I can mount and use it. (/dev/hdb1 /mnt/backup vfat rw,user,auto,uid=admin,gid=users,fmask=0777,dmask=0777 0 0), but still I don't able to write on this drive. It says: "permission denied"). I found, that directory /mnt/backup to which my drive points have permissions that does not allow everyone to write to this mount. (drwxr-xr-x 2 root root 4096 2008-05-21 15:23 backup). Could anyone please help a newbie to find the way out of the problem?

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Problem with writing on fat filesystem

fmask=0777,dmask=0777

This means NO rwx for directories, and NO rwx for normal files.
Either leave out the fmask/dmask, or explicitly set them to 0. These work similarly to 'umask' (man umask)

I can't remember now if the uid/gid can be specified by name or if you must specify them by number.

Syndicate content