/dev/sda5 /mnt/shared vfat rw,noatime,nosuid,nodev,noexec,nouser,async,umask=0,fmask=111 0 0
rw is for readwrite,
no* is for blocking many things (see man, I took these options from a webpage, I think),
async, umask... I don't remember (see above line)
fmask=111 makes the executable flag dissapear. This way I make sure I have no executable files copied from the FAT partition to the reiser partition.
Of course, some of the options might be redundant or not appliable, but I didn't have time to do extensive research on this.
]]>so umask=000 is the command to make it writableor what does this do ?
Yes. The 0's allow read write and exec. 1 is read and write. 2 is read and exec. 3 is read. 4 is write and exec. 5 is write. 6 is exec. 7 is no permissions. Think of everything in that directory with a default chmod of 777, the umask subracts from those permisions, only when dealing with fstabs. The very first 0 (there are four) represents octal not decimal.
The first 0 is owner, second is groups, third is everyone else.
Thats the best I can explain it without getting to technical.
I'll show you mine. Whether it's right or wrong, I don't know, but works for me.
/dev/hda5 /mnt/storage vfat gid=100,uid=1000,codepage=437,shortname=mixed,umask=000 0 0
/dev/hda7 swap swap defaults 0 0
/dev/hda6 / reiserfs defaults 0 0
/dev/hda8 /home reiserfs defaults 0 0
I especially like the shortname bit since the system can correctly recognize the upper/lower case directory without turning everything into lower case
Actually I got that from one of the articles on osnews. If you are interested, here it is.
]]>/dev/hda1 /mnt/mydrive vfat defaults,umask=0000 0 0
]]>