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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • 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. Beginners Guide to Linux Software Management with RPM
  2. CentOS / RHEL 7 : How to Enable the Old ethX Style Network Interfaces Names
  3. Understanding /etc/xinetd.d directory under Linux
  4. How to Set External Network For Containers in Linux Containers (LXC)
  5. How To Open A Port In CentOS / RHEL 7
  6. What are “segfault” messages in /var/log/messages file
  7. How to Resize / Expand a Btrfs Volume / Filesystem
  8. How To Separate Each Of Syslog Client’s Messages Into Different File (CentOS/RHEL 6 and 7)
  9. Basic Master Cups Server and Clients Configuration for Browsing in CentOS/RHEL 7
  10. How to set “max_report_luns” and “max_luns” on CentOS/RHEL 7 to scan more than 16,383 LUNs

You May Also Like

Primary Sidebar

Recent Posts

  • glab Command Examples
  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright