Reset the root password for Ubuntu and set the root password for ubuntu.
Press Esc to bring up the GRUB menu. Enter advanced mode.
Select recovery mode and press 'E.
Change ro recovery nomodeset to rw single init =/bin/bash
Press ctrl + x to enter the single-user mode.
Then reset the root password and run the passwd root command.
Restart.
How can I reset Ubuntu if I forget the root password?
Enter single user mode:
1. When starting grub, use the up/down key to move to the recovery mode of the second line, and press e (note not to press Enter)
Ubuntu, With Linux 3.2.0-23-generic (recovery mode)
2. Change ro recovery nomodeset to rw single init =/bin/bash.
Press ctrl + x or F10 to enter the single-user mode.
Ubuntu password reset method badly needed
You have configured grub. In single-user mode, enter the following commands:
Mount/-o remount, rw
Passwd
Enter the new password.