• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL 7 : How to boot into emergency or multi-user mode from GRUB2

by admin

Prior to RHEL 7, runlevels were used to identify a set of services that would start or stop when that runlevel was requested. Instead of runlevels, systemd uses the concept of targets to group together sets of services that are started or stopped.

A target can also include other targets (for example, the multi-user target includes an nfs target). The post below describes steps to boot an RHEL 7 system into emergency or multi-user mode directly from the GRUB.

1. When the server is booting and reaches the grub menu example below.

RHEL 7 boor into emergency mode

2. Choose which kernel that needs to be edited, by using the arrow key to highlight the kernel version, then press the letter e key to edit the boot entry. The next screen should look similar to the below example of me selecting the 3.10.0-327.el7.x86_64 kernel for editing.

CentOS 7 boot into emergency mode

3. Once on this screen use the arrow keys to arrow down to the line starting with linux, for most systems it will be linux16, but it can also be just linux and linuxefi. Once the blinking cursor is on the linux16 line, press the End key, this will move the cursor to the end of the linux16 line. Then to boot into whichever target is desired, the below can be appended.

For emergency mode
For booting into the emergency target append the below line to the linux16 line.

systemd.unit=emergency.target

CentOS 7 emergency mode

Fro multi-user mode
For booting into the multi-user target append the below line to the linux16 line.

systemd.unit=multi-user.target

RHEL 7 boot into multi user mode from GRUB

4. Once the parameter has been appended, press the Ctrl + x key at the same time to boot with the specified parameter.

Filed Under: CentOS/RHEL 7

Some more articles you might also be interested in …

  1. How to Configure a Fiber-Channel Over Ethernet (FCoE) Interface in CentOS/RHEL
  2. How to Provide Credentials From a File While Mounting CIFS Share in Linux
  3. Beginners Guide to Managing Package Module Streams in CentOS/RHEL 8
  4. Apache HTTP server – most commonly used containers (special configuration directives)
  5. Understanding iscsiadm Utility in CentOS / RHEL
  6. CentOS / RHEL : How to create and host yum repository over httpd
  7. OpenLDAP Server and Client Utilities list
  8. How to Disable NUMA in CentOS / RHEL 6,7
  9. CentOS / RHEL 7 : How to disable all tty consoles and enable only 1
  10. How to send Audit Logs to Remote Rsyslog Server in CentOS/RHEL 6,7

You May Also Like

Primary Sidebar

Recent Posts

  • grpck command – Remove corrupt or duplicate entries in the /etc/group and /etc/gshadow files.
  • xxd command – Expressed in hexadecimal form
  • sesearch: command not found
  • macof: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright