Recover a system with rescue mode
The installation program’s rescue mode is a minimal Linux environment that you can boot from the Red Hat Enterprise Linux DVD or other boot media. It contains command-line utilities for repairing a wide variety of issues.
Rescue mode can be accessed from the Troubleshooting menu of the boot menu. In this mode, you can mount file systems as read-only, denylist or add a driver provided on a driver disc, install or upgrade system packages, or manage partitions.
The installation program’s rescue mode is different from rescue mode (an equivalent to single-user mode) and emergency mode, which are provided as parts of the systemd system and service manager.
To boot into rescue mode, you must boot the system by using Red Hat Enterprise Linux boot media, such as a minimal boot disc, USB drive, or full installation DVD.
Configure advanced storage, such as iSCSI or zFCP devices, by using dracut boot options such as rd.zfcp= or root=iscsi:options. Alternatively, use the CMS configuration file on 64-bit IBM Z. You cannot configure these storage devices interactively after booting into rescue mode. For information about dracut boot options, see the dracut.cmdline(7) man page on your system.
Boot into rescue mode Copy linkLink copied!
Boot your RHEL system into rescue mode to troubleshoot and repair system issues when the normal boot process fails. Rescue mode provides a minimal environment to diagnose problems, recover data, and fix configuration issues that prevent normal system operation.
Procedure Copy linkLink copied!
Generate an SOS report in rescue mode Copy linkLink copied!
The sos report command-line utility collects configuration and diagnostic data, including the kernel version, loaded modules, and system and service configuration files. The output is saved as a tar archive in /var/tmp/. It helps analyze, troubleshoot errors, and can be captured in rescue mode.
Before you begin Copy linkLink copied!
- You have booted into rescue mode.
- You have mounted the installed system
/ (root)partition in read-write mode. - You have contacted Red Hat Support about your case and received a case number.
Procedure Copy linkLink copied!
Reinstall the GRUB2 boot loader Copy linkLink copied!
In some scenarios, the GRUB2 boot loader is mistakenly deleted, corrupted, or replaced by other operating systems. You can reinstall GRUB2 on the master boot record (MBR) on AMD64 and Intel 64 systems with BIOS.
Before you begin Copy linkLink copied!
- You have booted into rescue mode.
- You have mounted the installed system
/ (root)partition in read-write mode. - You have mounted the
/bootmount point in read-write mode.
Procedure Copy linkLink copied!
Add or remove a driver by using dnf Copy linkLink copied!
You can use the dnf package manager in rescue mode to add updated or missing drivers, or remove malfunctioning drivers that prevent the system from booting.
Before you begin Copy linkLink copied!
- You have booted into rescue mode.
- You have mounted the installed system in read-write mode.
Procedure Copy linkLink copied!
-
To add a new driver using
dnf: -
To remove a driver by using
dnf: