ro init=/bin/bash
. Notice the space between ro
and init=/bin/bash
.
How to Change Root Password in Linux Picture 13
Press Ctrl+X . This step causes the system to boot directly as a root-level Command Prompt in single user mode.
How to Change Root Password in Linux Picture 14
Type mount –o remount,rw /in Prompt and press ↵ Enter. This step helps mount the file system in read-write mode.
How to Change Root Password in Linux Picture 15
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.
How to Change Root Password in Linux Picture 16
Type in the new root password and press ↵ Enter. The characters you type will not be displayed on the screen. This is normal.
How to Change Root Password in Linux Picture 17
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'.
How to Change Root Password in Linux Picture 18
Type reboot –fand press ↵ Enter. This command helps restart the system normally.