I run Ubuntu in a virtual machine and I've managed to reset my password in recovery mode, by editing the parameters according to these instructions on Superuser.com. Summarizing my steps:
I changed ro single at the end of the line beginning with Linux to rw init=/bin/bash, while booting, then using the command passwd <username>, entered the new password twice. The password is reported to be updated successfully.
However, when I try to reboot the system nothing happens. I tried the command reboot, but it does not work. If I type exit I get kernel panic.
Any tips on how to proceed?
sudo shutdown -h nowandsudo reboot? – Private Jan 5 at 15:22hostname? – Private Jan 5 at 15:40