Professional Documents
Culture Documents
How to Boot Oracle Linux 7 into Rescue and Emergency Modes via systemd (Doc ID
2153996.1)
In this Document
Goal
Solution
Booting into Emergency mode (target)
Booting into Rescue mode (target)
Booting to systemd Debug Shell
Switching to Emergency mode (target)
Switching to Rescue mode (target)
References
APPLIES TO:
GOAL
This article describes how to configure Oracle Linux 7 (OL7) to boot into rescue and emergency modes.
In OL7, both rescue mode and emergency mode are systemd targets (that replace runlevels of previous OL versions).
Rescue mode is equivalent to single user mode and requires the root password.
Rescue mode allows the system to be repaired in situations when it is unable to complete it's regular boot process. Rescue
mode attempts to mount all local filesystems and start important system services, however does not activate network
interfaces, nor allow multiple users to be logged in.
Emergency mode provides a minimal environment allowing the system to be repaired even in situations when the system is
unable to enter rescue mode. In emergency mode, the system mounts the root file system as read-only, does not attempt
to mount other local fileystems and does not activate network interfaces.
In the event that Oracle Linux is unable to completely boot at all, refer to How to Bootup Oracle Linux 7.x into Rescue
Mode From ISO Image.
SOLUTION
1. During boot, when the GRUB2 menu is displayed, press the e key i.e. edit.
2. Append the following parameter to the linux16 line on a x86-64 system, or to the linuxefi line on a UEFI system:
... systemd.unit=emergency.target
Press Ctrl+a (or Home) and Ctrl+e (or End) to jump to the start and end of the line.
Press Ctrl+x to boot the system with the newly added parameter into emergency mode.
1. During boot, when the GRUB2 menu is displayed, press the e key i.e. edit.
2. Append the following parameter to the linux16 line on a x86-64 system, or to the linuxefi line on a UEFI system:
... systemd.unit=rescue.target
Press Ctrl+a (or Home) and Ctrl+e (or End) to jump to the start and end of the line.
Press Ctrl+x to boot the system with the newly added parameter into rescue mode.
1. During boot, when the GRUB2 menu is displayed, press the e key i.e. edit.
2. Append the following parameter to the linux16 line on a x86-64 system, or to the linuxefi line on a UEFI system:
... systemd.debug-shell
The system will configure the debug shell on console TTY9. Press Ctrl+Alt+F9 to connect to the debug shell (no credentials
required).
# systemctl emergency
# systemctl rescue
REFERENCES
NOTE:2302734.1 - How to Bootup Oracle Linux 7.x into Rescue Mode From ISO Image
Didn't find what you are looking for?