One other method could be to truly mount a quantity at /mnt
and place your content material inside that quantity. Which one you’d favor depends upon in order for you separate snapshots, backups and measurement management over the content material.
As you already came upon, /and so forth/artificial.conf
is supposed for creating mountpoints, so you may proceed out of your earlier experiments the place you already created that read-only /mnt
listing.
sudo diskutil apfs addVolume disk1 APFS mnt -mountpoint /mnt
would create one other quantity in your container “disk1”, and mount it to /mnt
.
To make that mount persistent, you could enter it into /and so forth/fstab
to be mounted at boot. First, decide the UUID of that new quantity:
diskutil data /usr/native | awk -F': ' '/Quantity UUID/{print $2}'
and add it to /and so forth/fstab:
echo "UUID=Place.UUID.Right here /mnt apfs rw,auto 0 1" >> /and so forth/fstab
It then will get mounted at boot, and voila, you will have your writable /mnt
. For those who want a selected person to personal that filesystem, you may state that within the mount choices. Default could be the proprietor of the mountpoint.
Here is a real-world instance making use of /and so forth/fstab
on MacOS 15.4 to separate /usr/native
right into a quantity of its personal for Homebrew, and place customers house file programs on volumes of their very own whereas separating out the MacOS-version dependant Library directories:
UUID=34173810-2CE0-4866-8B3F-743AFDE95DC6 /usr/native apfs rw,auto 0 1
UUID=1960E95F-4918-421B-ACB0-9EDF4163AD3F /Customers/bob apfs rw,auto 0 2
UUID=9116BE27-7463-4BD7-909D-DFC594724303 /Customers/alice apfs rw,auto 0 2
UUID=0379E174-0D18-488B-B76B-A594DC573958 /Customers/robert apfs rw,auto 0 2
UUID=90A57698-D4A1-4C3E-835E-0B3448411060 /Customers/bob/Library apfs rw,noauto 0 3
UUID=E39FE823-9C4A-4BDF-B0BF-FA21C5DCB8D7 /Customers/alice/Library apfs rw,noauto 0 3
UUID=8C9B6177-E3DE-4662-8CA9-DB916528294D /Customers/robert/Library apfs rw,noauto 0 3
If you wish to edit the fstab,
the supported means could be to make use of the vifs
command to maintain it locked throughout guide interference.