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

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • 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 : sysctl kernel parameter doesn’t take effect after reboot
  2. A File Is Claimed to Be Disappearing – How to monitor a file for deletion in Linux
  3. How to Configure Proxy in CentOS/RHEL/Fedora
  4. How to Stop SSH Session From Getting Timed Out
  5. 6 Useful journalctl Command Examples in CentOS / RHEL 7 (Cheat Sheet)
  6. understanding “yum history” command output
  7. RHEL 7 – RHCSA Notes – input / output redirection
  8. How to monitor the status of dm-multipathing and multipath devices (path groups) in Linux
  9. CentOS / RHEL 7 : Beginners guide to systemd service units
  10. CentOS / RHEL 7 : Configuring an NFS server and NFS client

You May Also Like

Primary Sidebar

Recent Posts

  • How to Disable IPv6 on Ubuntu 18.04 Bionic Beaver Linux
  • How to Capture More Logs in /var/log/dmesg for CentOS/RHEL
  • Unable to Start RDMA Services on CentOS/RHEL 7
  • How to rename a KVM VM with virsh
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary