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

The Geek Diary

HowTos | Basics | Concepts

  • Solaris 11
  • Solaris
    • SVM
    • ZFS
    • Zones
    • LDOMs
    • Hardware
  • Linux
    • CentOS/RHEL 7
    • RHCSA notes
    • SuSE Linux Enterprise
    • Linux Services
  • VxVM
  • VCS
  • Interview Questions
  • oracle
    • ASM
    • mysql
    • RAC
    • oracle 12c
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting

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 : How to log all LVM commands
  2. CentOS / RHEL 7 : Configuring NTP using chrony
  3. How to install and configure MariaDB in CentOS / RHEL 7
  4. CentOS / RHEL : How to restore/recover a deleted volume group in LVM
  5. CentOS / RHEL 7 : Configuring static IP adress using network interface configuration files
  6. How to work with multiple java versions under Linux
  7. How to configure iSCSI Initiator (client) in CentOS / RHEL 7
  8. CentOS / RHEL : How to Enable SSL For Apache
  9. How to Create and Mount Btrfs Snapshots
  10. How to Remove virbr0 and lxcbr0 Interfaces on CentOS/RHEL 6,7

You May Also Like

Primary Sidebar

Recent Posts

  • Beginners Guide to Udev in Linux
  • How to Check and Analyze Memory Usage in Solaris
  • Manual Changes Made To /etc/hosts Or /etc/sysconfig/network-scripts/ifcfg-* Are Lost
  • How to configure Partitioned Block Devices (Non-ASMLIB) And Assign Them To ASM
  • How to configure kdump in Oracle Enterprise Linux (OEL 5,6)

Footer

Cheat Sheets

  • LDOMs (OVM for SPARC) Command line reference
  • Solaris Volume Manager (SVM) command line reference
  • Solaris ZFS command line reference
  • RHEL 7 – RHCSA Notes (Cheat Sheets)
  • CentOS / RHEL 7 : firewalld Cheat Sheet
  • systemd command line reference (cheat sheet)

Solaris interview questions

  • The ultimate Solaris Volume Manager (SVM) interview questions
  • The ultimate Solaris zones (containers) interview questions
  • The ultimate Solaris networking interview questions
  • The ultimate ZFS interview questions
  • Archives
  • Contact Us
  • Copyright

© 2018 · The Geek Diary