Answer the question
In order to leave comments, you need to log in
How to change Root's password using Systemrescue (LVM)?
Good afternoon, Dear members of the forum)
"I am developing myself", let's say so)
Background. The case takes place on a dedicated server. Filled with Proxmox. Deployed a virtual machine.
The question is.
How to reset root password on CentOS 7 using SystemRescue? (the same VPS)
It does not allow mounting sda2, because it is LVM, incompatibility of file systems ..
Rummaging around on the Internet, I found a similar option ...
The result, let's say positive-negative)
Yes, I changed the password)
But it's not clear which one .. .) i.e. neither the new password nor the old one is suitable ..)
Answer the question
In order to leave comments, you need to log in
Use chroot to properly mount OS root when using rescue live cd
Always changed in this way
You mount the partition in read mode. Therefore, nothing is saved.
Another way is to mount in write mode and throw in an SSH key.
mount -o rw,remount
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question