ro init=/bin/bash
. Notice the space between ro
and init=/bin/bash
.
Press Ctrl+X . This step causes the system to boot directly as a root-level Command Prompt in single user mode.
Type mount –o remount,rw /in Prompt and press ↵ Enter. This step helps mount the file system in read-write mode.
Type passwdin Prompt and press ↵ Enter. When booting in single user mode, you will have root access, so there is no need to write any additional parameters to the command passwd.
Type in the new root password and press ↵ Enter. The characters you type will not be displayed on the screen. This is normal.
Re-type the new password and press ↵ Enter. When the system confirms that you have re-entered the correct previous password, you will see 'password updated successfully'.
Type reboot –fand press ↵ Enter. This command helps restart the system normally.