I can successfully mount an ext4 partition, the problem is that all the files on the partition are owned by the user with userid 1000. On one machine, my userid is 1000, but on another it's 1010. My username is the same on both machines, but I realise that the filesystem stores userids, not usernames.
I could correct the file ownership with something like the following:
find /mnt/example -exec chown -h 1010 {} \;
But then I would have to correct the file ownerships again back to 1000 when I mount this external drive on another machine.
What I would like is to give mount
an option saying map userid 1000 to 1010, so that I don't have to actually modify any files. Is there a way to do this?