I'm formatting an USB pen drive. For this I run the following commands:
First umount the device:
sudo umount /run/media/myuser/folder_where_is_mounted (I'm runing manjaro and is in /run where devices are connected)
Second Format the pen drive:
sudo mkfs.vfat -I /dev/sdc (sdc is the device I want to format)
Third I create a folder for use as mountpoint:
sudo mkdir -p /run/media/myuser/turid
After that I have set permissions and owner: sudo chown myuser:myuser /run/media/myuser/turid && sudo chmod -R 777 /run/media/myuser/turid
And finally I mount the device: sudo mount /dev/sdc /run/media/myuser/turid
And when I try to copy in file manager a file I get the message "Permission denied" even when the owner is myuser and I have rights to create and remove.
I have noticed that when I unplug and plug again it creates a new folder (as normal) and mounts the device with the same permissions and I can copy (as is normal and right). So anyone can help me to explain this?