You cannot recover your password once lost or forgotten. But what you can do is :-
if u r using lilo u can type single or 1 or linux single on the boot prompt, it will boot into single user mood, it will take u to bash prompt, where u can change the root pass. All done and now reboot the machine.
Hope this helps