Monthly Archives: June 2013

Start OS X in Safe Mode

Set safe mode:

sudo nvram boot-args="-x"


sudo nvram boot-args=""

Recover lost administrator password in OS X (Lion)

Restart the computer in single user mode:
Restart and hold Cmd+s

fsck -fy
mount -uw /
rm /var/db/.applesetupdone

After reboot is completed, go through the wizard. Open System Preferences –> Users and Groups –> reset password of the previous (original, non-root) user.

Reboot and login to the original user.