Macbook Pro 根目录创建资源出现[Read-Only System]的问题解决方案

新版本MacBook Pro操作系统,对于系统根目录的写操作权限有限制
我的系统版本是

[Cataline 10.15.5]

如下情况:

mkdir: /data/logs/java/: Read-only file system

之前的解决方法都是如下操作

sudo mount -uw /

但是新版本系统中,这种方法会出现错误

mount_apfs: volume could not be mounted: Operation not permitted
mount: / failed with 77

貌似,这个解决方案还需要些什么操作,我才Google上找了一番,亲测有效,步骤如下

1. Open Terminal and at the prompt type: csrutil status
2. Press return and if it comes back with the status as: System Integrity Protection status: enabled. You'll need to disable it.

如果csrutil是enable状态,请按照如下步骤将csrutil改成disable

1. Boot to Recovery OS by restarting your machine and holding down the Command and R keys at startup.
2. Launch Terminal from the Utilities menu.
3. Enter the following command: csrutil disable
4. Close Terminal and Restart the computer.

你可能感兴趣的:(技术文档)