mac big sur 根目錄無法新建文件夾問題

自從喬布斯死后,蘋果就開始瞎搞,感覺是打算拋棄開發(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ī)器并嘗試

參考:
https://apple.stackexchange.com/questions/395508/can-i-mount-the-root-system-filesystem-as-writable-in-big-sur

https://learnku.com/articles/35207

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容