In this tutorial we will show you How to reset Ubuntu Root Password. Some times you forget your root password and you are unable to login to your Ubuntu linux system. To fix such a problem, follow the instructions below.
How to reset Ubuntu Root Password
Step 1 - Reboot to GRUB2 boot menuFirst you must reboot your system to GRUB2 boot loader menu. To do so, restart your computer and press ESC key ; this will let you to boot into Ubuntu boot menu.
Step 2 - Modify boot optionsNow in order to modify Ubuntu boot options, you must find the line starting with "linux". Navigate to the end of the line and add the following content as you see on the below image:
Step 3 - Boot your systemAfter changing boot options in the previous step, press F10 to force your Ubuntu system to boot. Your system will boot and you will be provided with root command line prompt.
Step 4 - Reset your Lost PasswordNow enter the following commands in the command line prompt:
# mount -o remount,rw / # passwd The second command will change your password. # reboot -fYou have completed Lost Password Recovery process.
Step 5 - Login with your new passwordAfter rebooting, login as root user with your new password.
Congratulations! You have learned How to reset Ubuntu Root Password.
If you are facing any problem with the steps, feel free to comment here. We will help you to solve the issue.