mac Read-Only filesystem (Reprinted)

Original link https://blog.csdn.net/weiyoushi4001/article/details/102928575

After this mac upgrade the system, I found that my / data directory is gone, so I execute the command:

mkdir /data

The results found that actually prompted me to Read-Only filesystem, even with the sudo useless

to find relevant information when I looked a solution (closed SIP, and then enter sudo mount -uw /, create a folder to add permissions, SIP finally enabled) specific steps are as follows:

1, MAC restart, hold the Command + R, until the system into a safe mode.

2. Select an account, then click on the tool bar at the top of the screen to find the command-line tool.

3, execute the command   csrutil disable 

4, restart the computer, do not enter safe mode, execute the command  sudo Mount -uw / 

5, execute the command  sudo mkdir / the Data 


6. Run  the sudo the chmod 777 / Data 

. 7, restart the computer, enter the safe mode, Run  csrutil enable   (open SIP)

Guess you like

Origin www.cnblogs.com/batsing/p/12380057.html