Other Change ext4 Group?

Background: I've been away from FreeBSD/GhostBSD for a very long time. I was using Linux for a few months, but installed GhostBSD yesterday.

Situation: I have a secondary SSD installed in my laptop and it's formatted using ext4. GhostBSD finds it and mounts it, but the group ID is 1000.

Questions:
1) Is it advisable to change the group ID to my own (1001)?
2) Alternatively, would it be better to create a group and assign it the group ID 1000 and then just add myself to the group?
3) Back everything up and switch to ZFS?

Which would be the more sane/trouble-free approach?

A second thing:

My /etc/fstab makes no mention of this drive (identified as ada1p1). Obviously, this is being taken care of elsewhere, but where? Should I add an entry to fstab or just leave things as they are?
 
Filesystems generally store the UID/GID instead of the actual user or group name. When you swap filesystems with different systems it's imperative to keep the UID/GID the same across the different systems.

chgrp(1), chown(8)

Linux tends to use 1000 for the first (local) user and group. FreeBSD typically uses 1001.
 
I think you can abuse the id mapper from NFS for other local filesystems. Don't remember exactly.

If the disk is never used at the original Linux system anymore then changing the group id in the filesystem is cleanest.
 
Filesystems generally store the UID/GID instead of the actual user or group name. When you swap filesystems with different systems it's imperative to keep the UID/GID the same across the different systems.

chgrp(1), chown(8)

Linux tends to use 1000 for the first (local) user and group. FreeBSD typically uses 1001.
So, your suggestion would be option #2? Or am I misunderstanding?
 
I think you can abuse the id mapper from NFS for other local filesystems. Don't remember exactly.

If the disk is never used at the original Linux system anymore then changing the group id in the filesystem is cleanest.
I have no intention of going back to Linux at this point.

So, your suggestion is option #1 assuming I don't intent to use the drive with Linux at some point in the future?
 
Permissions tend to be 640 or 644 (for files, directories are typically 750 or 755), so the group usually only has read access and cannot write to it. You probably also want to change the owner of the files/directories, so you can actually write to them too.
 
Back
Top