21.7 C
Texas
Melhttp://www.osradar.com
Guru Unix /Linux and GNU supporter

Access Single User Mode in Ubuntu 20.04

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.

- Advertisement -

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

exec /sbin/init

you are done!!. cheers

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article