• 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 5 : How to Boot into Rescue Mode

by admin

It is possible to boot Linux in rescue mode using the installation media and bypassing the disk. During the rescue session, you can choose a network. Once the system is up, you will have access to the disk. Follow the below steps to boot in rescue mode:

Note: In rescue mode, HDD/NIC will be recognized by the rescue mode OS, and they could be different from the names in normal boot

1. Boot from the Linux Installation Media (this may require you to change the bios to boot from dvd).

2. Choose Rescue Mode by typing the following at the boot prompt and pressing [Enter]:

linux rescue

centOS 5 rescue mode

3. Choose the Language – Select desired language using arrow keys then press enter.

language selection RHEL 5 rescue mode

4. Choose Keyboard Type – Select desired keyboard type using arrow keys then press enter.

keyboard selection RHEL 5 rescue mode

5. Network Interfaces – The network interfaces are unnecessary. Use arrow keys to highlight No then press enter.

RHEL 5 rescue mode - network interfaces

6. Choose to mount the filesystem automatically. or choose to Skip mounting current system if you intend to fsck the disk (a filesystem that will be checked must be unmounted).

sysimage - RHEL 5 rescue mode

You are currently in Rescue Mode. If you allowed it, your root filesystem should be mounted as the /mnt/sysimage directory. For example, your /etc/fstab will be present at the /mnt/sysimage/etc/fstab location.

7. You can switch contexts so all the files will be available at their usual locations:

# chroot /mnt/sysimage
# pwd
/
#

Although you are accessing the user-space files of your root filesystem, remember that you are still using the boot environment (such as the kernel and device inventory) from the rescue mode. Commands such as df or mount may not give the expected results. Leave the chroot context by using exit twice: once to exit the chroot and again to exit rescue mode and reboot:

# exit
# exit

Filed Under: CentOS/RHEL 5, Linux

Some more articles you might also be interested in …

  1. mknod Command Examples in Linux
  2. man: command not found
  3. ncat: command not found
  4. “passwd: Module is unknown” – error while changing the password in CentOS/RHEL 6
  5. findmnt: command not found
  6. Swapon Fails To Mount Swap – Gives Invalid Argument Error
  7. CentOS / RHEL : How to find if a network port is open or not?
  8. Linux OS Service ‘o2cb’
  9. Adding static entry into system ARP cache (CentOS/RHEL)
  10. acpi: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright