Usually fellow the steps below of the first method is fine. But in some higher versions of macOS, beyond 10.0.1 or Big Sur
does not work, in my personal expirence.
Restart macOS, press Command+R to go to macOS utilities window.
Click menu item Utilities —> Terminal at top menu bar.
Then input command
csrutil disable
in the popup terminal window. This command will disable the System Integrity Protection.Click Mac Logo —> Restart menu item at the top left corner to restart the macOS.
After restart macOS, run the command
sudo mount -uw /
$ sudo mount -uw / Password:
- Now you can create a directory successfully with the command
mkdir
.- If you want to check whether __ System Integrity Protection__ is enabled or disabled, you can run command
csrutil status
in a terminal.\# csrutil status System Integrity Protection status: disabled.
- If you want to enable System Integrity Protection, you can restart the macOS and press Command + R to go to the macOS utilities window again to enable it with command
csrutil enable
in terminal.
- Use soft link.
mkdir -p ~/data pwd sudo vi /etc/synthetic.conf # Write result of pwd above into /etc/synthetic.conf, mymac should be the username of your mac machine. # Between `data` and `/Users/mymac/data` is a tab, not a plain whitespace. data /Users/mymac/data