📘 Passwd Recovery#
Warning
Unless the system disk has been encrypted, it is easy to change the root password on a Linux device [1].
Force shutdown. In GRUB menu, get in the edit mode by typing ‘e’.

In the edit mode find the kernel boot options on the Linux kernel parameters line.

Edit the Linux Kernel line to launch a shell using the init boot parameter. Also change the disk option to rw.

Check if the disk is writable and change the root password as usual.

Tip
If you forgot to change the disk permissions, remount it with the rw option before attempting to change the password.
mount -o remount,rw /
🤷