此翻译由机器生成,尚未经过人工审核。 会说这种语言吗? 查看评论。
简介
如果你忘记了 Mac 的密码,或者需要创建一个新的管理员帐户但不知道电脑上任何管理员帐户的密码,又或者你只是想重新查看“设置助理”,本指南将教你如何让 Mac 误以为它是刚开机的新设备,从而在不删除任何数据的情况下重置密码。
如果你的 Mac 启用了固件密码,你必须先将其禁用,否则本指南将无法生效!
如果启用了文件保险箱(FileVault),此方法也无法生效!
本指南中的说明不适用于配备 Apple T2 安全芯片或 Apple 芯片(例如 M1)的 Mac。
-
-
-
关闭你的 Mac。
-
按住 Command + S 键,同时按压电源按钮以开启你的 Mac。
-
最好在屏幕亮起或听到启动提示音之前就开始按住按键。如果你看到了 Apple 标志,则需要关机并重新进行此步骤。在配备 T2 芯片的 Mac 上,电脑一开启就会始终显示 Apple 标志。
-
你应该会看到一个带有白色文本的黑色屏幕。
-
-
-
当文本停止滚动时,你应该会在底部看到一行显示为“localhost:/ root#”的文本。如果你没有看到“localhost:/ root#”,请按压回车键。
-
输入“mount -uw”
-
屏幕上会出现更多文本。当你在底部再次看到“localhost:/ root#”时,请继续执行下一个步骤。
-
-
-
-
如果你收到一条显示为“override r------- root/wheel for /var/db/.AppleSetupDone?”的消息,输入“y”并按压回车键。
-
你可能会收到一条错误消息,显示为“rm: /var/db/.AppleSetupDone: read-only file system”。
-
如果你没有看到显示为“override r------- root/wheel for /var/db/.AppleSetupDone?”的消息,请继续执行下一个步骤。
-
-
现在,你已成功在 Mac 上创建了一个新的管理员帐户。
26等其他人完成本指南。
11指南评论
What are the steps to overcome the error?
“You may get an error that says, rm: /var/db/.AppleSetupDone: read-only file system.”
dhinostroza - 回复 分享
This error can be caused because FileVault is enabled or that there was some random error. Try running the same commands in Terminal in the macOS recovery partition and see if that works. This error may also occur on a Mac with a T2 chip. If FileVault is enabled, you will have to erase the hard drive/SSD and reinstall macOS if you forgot your password.
i get no such file or directory why ???
: /var/db/.AppleSetupDone: read-only file system.",
you have to allow write access to the filesystem,
but only after checking for errors.
On my old MacBookPro, it's written in the system messages:
/sbin/fsck -fy
/sbin/mount -uw /
rm /var/db/.AppleSetupDone
Afterwards, it worked as described