phony2r
V2EX  ›  macOS

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

  •  
  •   phony2r · Dec 28, 2021 · 1359 views
    This topic created in 1619 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   ·   4084 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 00:55 · PVG 08:55 · LAX 17:55 · JFK 20:55
    ♥ Do have faith in what you're doing.