Writing on a FAT32 partition as a normal user
From ArchWiki
i18n |
---|
English |
简体中文 |
Русский |
This howto is based on this article on linuxforum.
To write on a fat32 partition you have to make a few changes to your '/etc/fstab' file.
/dev/hdX /mnt/Y vfat user,rw,umask=000 0 0
The 'user' flag means that any user (even non-root) can mount and unmount the partition '/dev/hdX'. 'rw' gives read-write access, 'umask' option remove selected rights - for example 'umask=111' remove executable rights. The problem is, that this entry remove executable rights from directories too, so we must correct it by 'dmask=000'. And why using this options? Without thats all files will be executable. You can use instead of umask and dmask option 'showexec', which shows all windows executables (com,exe,bat) in executable colours.
For example, if your fat32 partition is on '/dev/hda9' and you wish to mount it to '/mnt/fat32' then you would type in
/dev/hda9 /mnt/fat32 vfat user,rw,umask=111,dmask=000 0 0