phunni Posted November 6, 2003 Report Share Posted November 6, 2003 For the first time ever I have a dual boot machine. This has been achieved using two hard drives - one with just Linux on it and the other with windows on an NTFS partition and a FAT32 partition. In Linux I can mount the FAT partition and have it as type vfat in my /etc/fstab - trouble is I have no ability to write to it! If I try to chmod or chown it at all then I get a permission denied error. The drive was formatted in windows - is this likely to be the cause of my problems? Quote Link to comment Share on other sites More sharing options...
mtweidmann Posted November 6, 2003 Report Share Posted November 6, 2003 The permissions a partition has is set when it is mounted, you can't use chmod. You need to make a minor change in your fstab. /dev/hdb1 /mnt/win_d vfat iocharset=iso8859-15,umask=007,gid=500,codepage=850 0 0 The above line is from my fstab file. The umask and gid bits say to give user group 500 (gid) read write access. I wanted to give a group rather than an individual user access hence gid but you could also have used "uid" for a user. You can find out the gid or uid numbers from UserDrake. Quote Link to comment Share on other sites More sharing options...
phunni Posted November 6, 2003 Author Report Share Posted November 6, 2003 Brilliant - thanks that worked Quote Link to comment Share on other sites More sharing options...
Cannonfodder Posted November 7, 2003 Report Share Posted November 7, 2003 Do some more searching for fstab /dev vfat for cannonfodder and you will find more entries that don't require the GID=500. That sets ownership for the partition but its no good if you have other accounts you want to access the vfat partition. Quote Link to comment Share on other sites More sharing options...
DragonMage Posted November 7, 2003 Report Share Posted November 7, 2003 This is what I have in my /etc/fstab file dev/hda6 /data vfat codepage=850,umask=0,iocharset=iso8859-1 0 0 Note there is no gid or uid, but the umask is set to 0. I think umask=0 will make the partition readable and writable to everyone. Of course I could be wrong. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.