自從喬布斯死后,蘋果就開始瞎搞,感覺是打算拋棄開發(fā)者了
和以前系統(tǒng)一樣,正當(dāng)我想要在 根目錄創(chuàng)建個(gè)文件夾
mkdir data
mkdir: data: Read-only file system
提示沒有創(chuàng)建,經(jīng)過我百般嘗試,網(wǎng)上各種關(guān)閉 sip 然后掛載硬盤為讀寫
sudo mount -uw /
mount_apfs: volume could not be mounted: Permission denied
mount: / failed with 66
都表示失敗了
我最終也沒有成功在根目錄創(chuàng)建我的 /data
無奈之下,用了個(gè)其他的辦法,在/System/Volumes/Data/創(chuàng)建data并映射為/data
具體步驟如下
# 1 創(chuàng)建文件
sudo vim /etc/synthetic.conf
# 2 寫入內(nèi)容, ‘<dir>?/System/Volumes/Data/<dir>’,其中: ? 表示一個(gè)tab
data?/System/Volumes/Data/data
# 實(shí)際顯示效果 data /System/Volumes/Data/data 尤其注意中間是個(gè)tab
# 3 退出vim編輯,去/System/Volumes/Data/創(chuàng)建data文件夾
cd /System/Volumes/Data/
mkdir data
sudo chmod -R 777 data
# 4 重啟機(jī)器并嘗試