用 fdesetup enable 开启“文件保险箱”加密

用苹果自带的 fdesetup 工具在终端里为启动磁盘开启“文件保险箱”加密。

macOS安全FileVault 磁盘加密加密中风险
运行 sudo fdesetup enable 并输入账户密码确认,即可开始对启动磁盘进行“文件保险箱”加密。

01命令

命令
$ sudo fdesetup enable

02作用说明

fdesetup enable 会开启“文件保险箱”(FileVault)——苹果针对启动卷的整盘加密,并使用你的账户密码作为解锁密钥。加密在后台进行,在 Apple 芯片的 Mac 上通常一小时内即可完成;可用 fdesetup status 查看进度。苹果的 macOS 使用手册说明,FileVault 的作用是在 Mac 丢失或被盗时保护数据——在配备 T2 芯片或 Apple 芯片的现代 Mac 上,硬件加速让加密几乎没有性能损失。

03风险

风险中风险
使用条件Requires administrator (sudo) privileges; the account password is used as the recovery unlock.
!注意: 务必保存好系统提供的恢复密钥——如果账户密码和恢复密钥都丢了,加密后的数据将永久无法找回。

04撤销

撤销
$ sudo fdesetup disable

05来源

  • FDESETUP(8) - macOS manual page
    Apple (Xcode man pages mirror) · vendor-doc · 2026-09-17
    依据: The manual page documents 'fdesetup enable' with the description 'Enables FileVault', including auth options and recovery key output.
  • Encrypt Mac data with FileVault - macOS User Guide
    Apple Support · vendor-doc · 2026-09-17
    依据: Apple's FileVault guide explains what encrypting Mac data with FileVault does and that it protects data if the Mac is lost or stolen.

最后验证: 2026-09-19 · 分类: 安全与隐私

06相关方案