• 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. CentOS / RHEL 7 : How to enable telnet for a group of users
  2. Beginners guide to Device Mapper (DM) multipathing
  3. Yum Command Fails with “Another app is currently holding the yum lock” in CentOS/ RHEL 7
  4. How to Extend allowed number of loopback devices
  5. How to Make User Account Read-Only in CentOS/RHEL 7
  6. How to disable or enable an HBA without reboot under CentOS/RHEL
  7. How to Disable TLS 1.1 Cockpit port 9090
  8. CentOS / RHEL : How to add, delete and display LVM tags
  9. pvcreate error : Can’t open /dev/sdx exclusively. Mounted filesystem?
  10. How to enable core dump for Applications on CentOS/RHEL

You May Also Like

Primary Sidebar

Recent Posts

  • pw-cat Command Examples in Linux
  • pvs: command not found
  • pulseaudio: command not found
  • pulseaudio Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright