This question already has an answer here:
I have a Debian desktop. On last time, I had updated/upgraded. Now I cannot login (maybe I forgotten username). I cannot login to root too. It seems that we cannot login with root (we just can switch to root). I can make sure about the password. How can I retrieve the username? Thanks!
(There are no GUI to login here after update, just a black screen asking for username/password)