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

mac 怎么自动挂载加密的 apfs 到指定目录?

  •  
  •   phony2r · Dec 28, 2021 · 1317 views
    This topic created in 1591 days ago, the information mentioned may be changed or developed.
    1 replies    2021-12-31 12:32:10 +08:00
    ihwbunny
        1
    ihwbunny  
       Dec 31, 2021   ❤️ 1
    分三步:
    1. 先用下面命令确定 APFS 的卷 id (apfs_volume_id), 就是貌似 “disk1s1” 的
    diskutitl apfs list
    这一步可以用脚本自动确定

    2. 再解锁: 如果有恢复键值( recovery_key ),就用下面命令:
    diskutil apfs unlockVolume /dev/apfs_volume_id -passphrase recovery_key

    3. 再装载到 Path
    diskutil mount -mountPoint Path apfs_volume_id
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   975 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 19:13 · PVG 03:13 · LAX 12:13 · JFK 15:13
    ♥ Do have faith in what you're doing.