Monthly Archives: June 2013

Start OS X in Safe Mode

Set safe mode:

sudo nvram boot-args="-x"

Reset:

sudo nvram boot-args=""
Advertisements

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
reboot

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.