This question already has an answer here:
A friend of mine has a old Ubuntu laptop that he wants to put back into use, but since it has been some time since he used it he has forgotten his password.
I've looked up how to change but none of them will work. I have also tried using the recovery mode, but using the root mode is locked also and requires a password. (We can not reformat the disk due to some pictures on it.)
Thank you in advance! :)