How to boot a Linux server in single-user mode or rescue target
Hi friend, in this article, we will learn how to boot a Linux server in single-user mode or rescue target mode.
As a Linux Admin or troubleshooter, you should know this. it will you to troubleshoot issues as password reset for the user, mount issue, etc.
So, let’s start
Step 1 Start the server and press the up and down arrow key on the kernel popup. Here choose the main kernel and press “e” to go into the edit file
Step 2 Go end of the line and add below line
Now, check linux16 and go to the end of this line and add
systemd.unit=rescue.target as per the below screenshot.
Now, Press Ctrl+x
Step 3 Now we required to put root credential and press Enter .
Note:- In rescue target, we can only log in from the root user and also system running with minimal services.
Step 4 Now, Check runlevel of the system.
Using below command we can check the runlevel of the system.
# runlevel # who -r
I am a professional Cloud Engineer and founder of LinuxFork. I am working on Infrastructure Deployment and focusing on the integration of open source technologies with the Cloud. I am an avid Linux lover and open source enthusiast. mostly, I am working with Redhat and Ubuntu Linux in the production environment. apart from this I always believe in knowledge sharing.