V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
homeway88
V2EX  ›  macOS

MacOS catalina 如何创建/home 目录,显示 mkdir: /home: Read-only file system

  •  2
     
  •   homeway88 · Oct 9, 2019 · 12965 views
    This topic created in 2395 days ago, the information mentioned may be changed or developed.

    昨天把系统升级到 catalina,今天发现旧系统创建好的/home目录不见了,原来旧系统下已经把/etc/auto_master里面的这一行注释掉了,并且重启过了。

    #/home                   auto_home       -nobrowse,hidefromfinder
    

    但现在创建的时候,显示以下错误:

    sudo mkdir /home
    mkdir: /home: Read-only file system
    

    以下是我的磁盘配置

    df -lh
    Filesystem     Size   Used  Avail Capacity iused      ifree %iused  Mounted on
    /dev/disk1s5  234Gi   10Gi   38Gi    21%  482022 2448643338    0%   /
    /dev/disk1s1  234Gi  177Gi   38Gi    83% 2338469 2446786891    0%   /System/Volumes/Data
    /dev/disk1s4  234Gi  7.0Gi   38Gi    16%       8 2449125352    0%   /private/var/vm
    

    由于这个系统 catalina 是昨天才发布的,现在网上还没找到相应的解决方案,求大神解答。

    Supplement 1  ·  Oct 9, 2019

    正确解法: 第一步:关闭SIP 第二步:

    csrutil status
    System Integrity Protection status: disabled.
    
    sudo mount -uw /
    sudo mkdir /home
    

    感谢: @SimonOne

    6 replies    2020-04-09 20:01:26 +08:00
    SoloCompany
        1
    SoloCompany  
       Oct 9, 2019 via iPhone
    我升级完后,auto_home 还在
    SimonOne
        2
    SimonOne  
       Oct 9, 2019   ❤️ 1
    关闭 sip,终端输入 sudo mount -uw /
    其他帖子里明明有啊
    homeway88
        3
    homeway88  
    OP
       Oct 9, 2019
    @SimonOne 正确,结帖。
    zhangfeiwudi
        4
    zhangfeiwudi  
       Nov 14, 2019
    感谢 就是关闭 sip 要重启一次 蛋疼
    MiracleCoder
        5
    MiracleCoder  
       Jan 13, 2020
    Update: SIP 需要进入恢复模式才能禁用,重启后使用 Command+R 即可
    UserNameisNull
        6
    UserNameisNull  
       Apr 9, 2020
    在补充一下,Command+R 进去回复模式,点上面的常用工具-终端,输入`csrutil disable`
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   820 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 53ms · UTC 21:11 · PVG 05:11 · LAX 14:11 · JFK 17:11
    ♥ Do have faith in what you're doing.