Monday, December 1, 2014

Booting CentOS in Single User Mode


Booting CentOS in Single User Mode
When you have an issue where CentOS will no longer boot, you have to be able to get into the operating system to resolve the problem.  I have had to boot into single user mode to resolve issues with file system mounting, or edit network settings when there is a problem with eth0 settings.  All of these situations are easy enough to resolve if you can just get into the operating system to fix the problems.  In these cases, booting into single user mode has allowed me the chance to resolve the problem.

So, let’s get started…



Step 1 – Boot CentOS into Single User Mode – Hit Any Key
Power up the machine and when you see this screen, hit the space bar or any other key before the timeout.
Boot CentOS in Single User Mode - Press Any Key to Edit Boot Options
Boot CentOS in Single User Mode – Press Any Key to Edit Boot Options


Step 2 – Boot CentOS into Single User Mode – Choose Boot Kernel

Next up, we will be given the list of kernels that we can boot from.  Choose the one that you typically boot to.  Typically, it is the latest one.  We use our up and down arrows to get to the proper kernel and then hit the “e” key to signify that we wish to edit it.

Boot CentOS in Single User Mode - Select Kernel
Boot CentOS in Single User Mode – Select Kernel

Step 3 – Boot CentOS into Single User Mode – Edit Boot Options 

Now, we are editing the kernel’s boot options.  Choose the line that begins with “kernel” as shown in the image to the right.  Then hit the “e” key again.


Boot CentOS in Single User Mode - Edit Kernel Boot Options
Boot CentOS in Single User Mode – Edit Kernel Boot Options


Step 4 – Boot CentOS into Single User Mode – Add Single User Mode Option

Type the word “single” at the end of the options.  

Then hit the “Enter” key.  

It will now boot your CentOS operating system into single user mode and you can resolve whatever issues you have that caused you to need to boot CentOS into single user mode in the first place.


Boot CentOS in Single User Mode - Add "Single" to the Kernel Boot Options
Boot CentOS in Single User Mode – Add “Single” to the Kernel Boot Options

No comments: