How to reset root password on Linux server

First we need to boot into recovery mode. To do so, restart server and hold Shift down to call up the boot menu. Then select (recovery mode) for the image you are using. Once you get Recovery menu, select root and press Enter. You will be redirected to recovery console.

 root@server1:~#

At this point we need to mount file system, since it is in RO (read-only) mode. To do so, type the following:
Continue reading “How to reset root password on Linux server”