Boot using a rescue disk (or some rescue or live CD that let you boot off the memory. Slax Live would be fine
http://www.slax.org/ ).
mount your hard drive partition containing /etc directory of your system to some mount directory
edit /etc/shadow file
delete everything between the first and second colon of the row that starts with root.
type sync several times
reboot your system, and then you should be able to login with username root and no password.