Reset 10.5 Leopard, 10.6 Snow Leopard password & OS X Lion

This step is optional, but it’s a good idea because it checks the consistency of the hard disk before moving on. At the prompt, type fsck -fy and press Enter/Return. Wait for the checks to complete before going to the next step.