Sometimes but not often, but many times, after formatting an SD card with Gparted, the SD card becomes unaccessible to normal user, so I go as root and change the permissions, happens especially when changing the file system from say Fat32 to Ext4. Reformatting doesn't help. Does Gparted changes the permissions on disk? If yes why? If no then why it happens to me? I used other tools, only gparted seems to do that.
If you are using mkfs.ext4, you have to pass
-E root_owner=your_uid:your_gid, this is usually passed in an 'extra options' textbox in gui partition tools. If you dont do this (< mkfs 1.42) then the person running the gui tool will get the permissions. Nowdays, for security, it assigns them to root:root (0:0). If you ever go back to fat32 or ntfs, you should be aware that their mkfs tools work differently*
- fat32 partitions need the option
uid=your_uid,gid=your_gid(usually 1000) when mounted if you want to access them. You can use permissions with NTFS, but it requires you to specify 'permissions' as a mount option (the