If you are using GRUB, you may be able to reset the root password without having to boot from a live cd. (Unless you have password protected GRUB!)
Boot to the GRUB menu, press
e (for edit), before the machine has a chance to boot into linux
Move the cursor down one line
Press
e again
Press
End to move to the end of the kernel line
Add
- Code: Select all
init=/bin/bash
Press
EnterPress
b (for boot)
The computer will now boot to a bash prompt
type
- Code: Select all
mount -n -o remount, rw /
Now type
- Code: Select all
passwd
and create a new password.
Now type
- Code: Select all
reboot
to restart the machine.