Can't write on FAT32 partition although having rw mount option?

Solution 1:

Read man mount, especially the "Mount options for fat" part. You can use the uid= and gid= options to make all the files owned by the specified UID and GID. If it's already mounted, you could do something like

target=/dev/...
mntdir=the directory where it should be mounted
sudo mount -t vfat -o remount,rw,user,users,nosuid,nodev,relatime,uid=$(id -u),gid=$(id -g),fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2 $target $mntdir