Ask Different Asked by Stefan Papp on November 28, 2021
After the installation of Catalina all User created folders from root are moved into a separate folder and the root folder is made readonly, containing only system default folders.
How is it possible to undo this and to make the root folder writeable again?
How to create a /bar
directory you can write to:
echo 'bar' | sudo tee -a /etc/synthetic.conf
sudo diskutil apfs addVolume disk1 APFSX Bar -mountpoint /bar
sudo diskutil enableOwnership /bar
sudo chflags hidden /bar # Don't show the Bar volume on the desktop
echo "LABEL=Bar /bar apfs rw" | sudo tee -a /etc/fstab
You might need to use a different diskX
number. Check diskutil list
for more.
Credit to @callahad on the NixOS/nix issue tracker: https://github.com/NixOS/nix/issues/2925#issuecomment-539570232
Answered by Dale Wijnand on November 28, 2021
Found this thread at Apple Developer Forums, where they do make their root directory writable again. This is not persistent across reboots, so you might want to create an script that runs at startup to make the change be permanent (don't think this is necessary but would be a way out).
Disable SIP (recovery mode, csrutil disable
).
Restart.
Mount drive for read and write (sudo mount -uw /
).
Assign rights for read and write ([sudo] chmod - R 775 /your/folder/
).
Delete it ([sudo] rm -rf /your/folder/
).
Restart.
Enable SIP (recovery mode, csrutil enable
).
"sudo" in square brackets means it may be required (like in my case) while others report they managed to get result without it.
Answered by xtealer on November 28, 2021
You can create a symbolic in root directory via synthetic.conf
, as an example see below the creation of a symbolic link named bar
at /
, which points to System/Volumes/Data/bar
, a writeable location at the root of the data volume.
echo -e 'bartSystem/Volumes/Data/bar' | sudo tee -a /etc/synthetic.conf
After executing the command above, you need to reboot to see effects.
SEE ALSO
man synthetic.conf
Answered by Shawyeok on November 28, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP