I was reading about changing root password in CentOS 7. it's totally different from centOS 6.
I was wondering about the steps for example why should I change ro
? what exactly happens in every step?
I was reading about changing root password in CentOS 7. it's totally different from centOS 6.
I was wondering about the steps for example why should I change ro
? what exactly happens in every step?
ro
option means read-only
, so changing to rw init=/sysroot/bin/sh
in kernel-image will open a shell and now your file-system is mounted with read and write
.
Now chroot /sysroot
means that /sysroot
directory will appear as /
.
For more info regarding this read this answer https://unix.stackexchange.com/a/413790/255251.