Forgot root password

I've forgotten the root password of my desktop computer.
Is there a way I can set a new one so that I can login as root again?
I know this shouldn't have happened, and I could beat my head on my table all day long... Grrrr...

Get a rescue CD (e.g. from here: http://rescuecd.sourceforge.net/download.html), boot your computer from it, then login as root (if you use the rescue CD mentioned before, the password is rescue, then mount your hard disk, chroot to it and set a new password for root:

Code:

mount -t auto /dev/hda1 /mnt
cd /mnt
chroot /mnt
passwd root

Reboot your PC (don't forget to take out the RescueCD), and should be able to login as root.