Dealing with gid collisions when rebuilding a Linux system around an existing disk
0
votes
1
answer
47
views
I am currently rebuilding a Linux system, migrating to a new distribution (Ubuntu 24.04).
I have one disk which holds several terabytes of user data, which I want to keep. The disk holds a btrfs filesystem with read-only snapshots, which limits my options when it comes to adapting the disk contents (I can’t easily change the read-only snapshots).
Now the new Linux distribution, by default, comes with some groups which have IDs starting at 1000 and which have permissions on the system. These, however, are identical with group IDs I used in my old installation and which have permissions on the btrfs filesystem. Due to the read-only snapshots, I can‘t easily update group IDs on the user data.
I’ve been pointed to ID-mapped mounts, but no useful instructions on how to use them.
Can I map the filesystem in such a way that filesystem gid 1000 corresponds to, say, system gid 1024? How would I enter that in /etc/fstab so the filesystem is mounted on boot?
Asked by user149408
(1515 rep)
Nov 11, 2024, 07:50 PM
Last activity: Nov 12, 2024, 06:23 PM
Last activity: Nov 12, 2024, 06:23 PM