Maybe sometimes due to some serious problems on your system, you need to access single user mode to fix some issues, but how to access single user mode in Ubuntu 20.04 and how to reset root password in Ubuntu 20.04
First thing to get access to the grub console to make some changes
As soon as the boot process starts, please press ESC to bring up the GRUB boot prompt.
You will see a GRUB boot prompt – press E to edit the first boot option.
Find the kernel line (it starts with
linux /boot/) and add
init=/bin/bash at the end of the line.
Press CTRL+X or F10 to boot.
The system will boot and you will see the root prompt. Type
mount -o remount,rw / and then
passwd to change the root password and then reboot again.
root password has been successfully changed.
we have uccessfully set everything that we want and now its time to reboot the system to use it in the normal GUI or CLI mode.
Type this command to start booting
you are done!!. cheers