phony2r
V2EX  ›  macOS

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

  •  
  •   phony2r · Dec 28, 2021 · 1610 views
    This topic created in 1780 days ago, the information mentioned may be changed or developed.
    1 replies  •  2021-12-31 12:32:10 +08:00
    ihwbunny
    ihwbunny
    Dec 31, 2021❤️1
    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   ·   Privacy   ·   Solana   ·   1821 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 16:01 · PVG 00:01 · LAX 08:01 · JFK 11:01
    ♥ Do have faith in what you're doing.