fixing /Users defined partition after an upgrade of mac os X.
The Mac I was using was configured before I got it, and I needed to upgrade it to use some more recent applications, but I ran into some issues due to a specific configuration of the /Users partition being located on a different partition than the OS data.
I could not mount it properly, due to 2 errors (might have been possible to mount it directly in HFS, but I also fixed it during the debug, just publishing my fix here with both steps).
Error :
sudo mount -uw /Users
Password:
mount_apfs: volume could not be mounted: Operation not permitted
mount: /Users failed with 77
Step 1 : convert from HFS to APFS
with Disk Utility tool > menu "Edit" > "Convert to APFS"...
Step 2 : edit mount description
/etc/fstab, edited with (sudo) vifs
was :
UUID=12QW345E-1234-5678-123QWE123QWE /Users hfs auto
changed to :
UUID=12QW345E-1234-5678-123QWE123QWE /Users apfs rw 1 2
Step 3 : grant mount on /Users
Boot in recovery mode ( mac + R )
Launch (menu Utilities) > Terminal
csrutil status
csrutil enable --without fs
reboot