Reset lost root password on Ubuntu 16.04 Xenial Xerus Linux

Reboot to Grub Menu

Press SHIFT after you start your computer until GRUB’s menu appears:



Edit Grub Menu

Once you reboot to Grub menu, select the first menu item or the menu item you normally use to boot your Ubuntu system and press e to edit:

Once in the Grub’s boot menu edit mode use navigation arrows to locate a line starting with linux and edit it to include or append read-write mode rw and init=/bin/bash.


Once ready press CTRL+x or F10 to boot.


Reseting root’s password

root@(none):/# mount | grep -w /

root@(none):/# passwd

Reboot System

Reboot your system using the following command:

root@(none):/# exec /sbin/init

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s