After updating to big sur, I can no longer mount the root as writable (even with SIP disabled):
sudo mount -uw /
mount_apfs: volume could not be mounted: Permission denied
mount: / failed with 66
How can I fix this?
After updating to big sur, I can no longer mount the root as writable (even with SIP disabled):
sudo mount -uw /
mount_apfs: volume could not be mounted: Permission denied
mount: / failed with 66
How can I fix this?
DISCLAIMER: have a good backup and plan to erase and reinstall your Mac from the internet before trying this procedure. A mistake can prevent your system from starting without assistance.
csrutil authenticated-root disable
mount
and chop off the last s, e.g. if your root is /dev/disk1s2s3
, you'll mount /dev/disk1s2
~/mount
mkdir -p -m777 ~/mount
sudo mount -o nobrowse -t apfs DISK_PATH MOUNT_PATH
, using the values from above
sudo mount -o nobrowse -t apfs /dev/disk1s2 ~/mount
sudo bless --folder MOUNT_PATH/System/Library/CoreServices --bootefi --create-snapshot
zsh
/ bash
/sh
whatever you need to run it? I cannot manage to get this working as mount_apfs: volume could not be mounted: Resource busy
failed with 75
– Dominik Bucher
Feb 05 '21 at 01:05
/System/Library/LaunchDaemon/
with both SIP and SSV disabled (SSV = https://eclecticlight.co/2020/06/25/big-surs-signed-system-volume-added-security-protection/), any modifications performed are not persisted once I boot back into OSX :/
– brainstorm
Feb 12 '21 at 02:12
mount_apfs: volume could not be mounted: Resource busy
and fails with 75, like what @DominikBucher and @brainstorm said.
– auspicious99
Apr 28 '21 at 11:24
bless
command) fails to even create a snapshot, much less bless it. I also tried another way to create a snapshot, /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs_systemsnapshot -v <volume mount point> -r ""
from https://www.tonymacx86.com/threads/solved-disable-system-file-protection-in-big-sur.302406/ but that also gave an error, so I rebooted back without a snapshot of my changes, and lost them all ..
– auspicious99
Apr 28 '21 at 16:05
bputil
: https://eclecticlight.co/2021/05/21/m1-secure-boot-morphine-and-self-destruction/
– brainstorm
May 21 '21 at 12:08
Couldn't create snapshot on volume /Users/me/mount: Operation not permitted
– GolDDranks
Apr 10 '22 at 08:50
authenticated-root
was not properly disabled. I run MacOS in VMWare, and disabled SIP using this guide: https://itectec.com/askdifferent/how-to-disable-sip-when-big-sur-is-installed-in-a-vmware-fusion-player-virtual-machine/ but disabling authenticated-root
was missing from the hex value stored to NVRAM. Using value ff0f0000 instead of 7f000000 did the trick.
– GolDDranks
Apr 10 '22 at 15:22
% sudo bless --folder ~/mount/System/Library/CoreServices --bootefi --create-snapshot
, bless: For Apple Silicon Macs, the 'folder' option is only supported for external devices
. But the --mount option (and the --setBoot option) seems to work. % sudo bless --mount ~/mount/System/Library/CoreServices --setBoot --create-snapshot
link
– H.Katsura
Sep 29 '23 at 03:57
My company requires to read/write environment informations under /data/webapps/appenv
. Therefore, this workaround shared by a colleague of mine might not answer this question directly, but it is super useful if you want to write something under your root path!
Create a file: sudo vim /etc/synthetic.conf
.
Write content: <dir>⇥/System/Volumes/Data/<dir>
. Notice: the ⇥
is a tab!
In my case, it looks like this: data⇥/System/Volumes/Data/data
Go to /System/Volumes/Data
and do sudo mkdir <dir>
.
Then do sudo chmod -R 777 <dir>
.
Finally, reboot, and your directory <dir>
should now be accessible.
man synthetic.conf
or https://derflounder.wordpress.com/2020/01/18/creating-root-level-directories-and-symbolic-links-on-macos-catalina/
– hans_meine
Apr 03 '21 at 18:55