Recover your Linux password (Grub method)

If you’ve lost your Linux password, here’s a simple Grub way to recover it. For more detail, check the video attached to this post.

  • Reboot your machine and press E at the GRUB boot menu.

  • Find the line that starts with linux, change ro to rw, and add init=/bin/bash at the end.

  • Press Ctrl + X to boot.

  • In the shell, run passwd root and set a new root password.
    (same procedure to reset your user password)

  • Press Ctrl + Alt + Del to reboot.

That’s it.

1 Like