[Turn]linux Rescue mode: Linux rescue use detailed plots

Source: Internet
Author: User

Online many netizens asked how to enter the rescue mode, do not know how to use rescue to save the system.
Now let me diagram into rescue (example system for Rhel 3)

1. Enter the installation interface using the installation CD or the hard drive installation, entering the Linux rescue in the shell

2. Then follow the prompts to select the language and keyboard format

3. Choose whether to configure the NIC

General system to rescue, the network will not need, so you can choose to skip the network card configuration, of course, you can choose if you need to, the specific setup process and install the same.

4. Select whether to let the system find the RHEL system on the hard disk, and select Continue.

5. The system on the hard drive has been found and mounted under/mnt/sysimage

6. Follow the prompts chroot/mnt/sysimage

After chroot you can already be in your system to be saved. Grub hung up, grub-install/dev/hdxx config file changed wrong, Vi/etc/fstab vi/etc/inittab ........... Package destroyed by Rpm-f xxx.rpm

After completing the repair work, Exit command exits Chroot,exit Exit rescue shell system restart.

Note:
If the system on your hard drive is a non-rhel system such as Debian, then in the 4th step, the rescue program will not find the system on the hard drive, so we choose "Skip" and go directly to the shell. Suppose you now have a Debian system on your hard disk/dev/hda1 the/boot partition/DEV/HDA5 for/partition/dev/hda6 as swap. So we're doing it now.
Code:
# fdisk-l (view partition Condition)
# Mkdir/mnt/linux
# mkdir/mnt/linux/boot (Create a directory based on information obtained by FDISK-L)
# mount-t Ext3/dev/hda5/mnt/linux
# mount-t Ext3/dev/hda1/mnt/linux/boot (file system mounted on the hard drive)
# chroot/mnt/linux (chroot change work system)
#

Since then we have successfully entered the hard disk of the Debian system, the rest came to the same as before, there is the grievances of the retribution revenge.
Other:
If your system is file system corruption then do not mount, chroot system.
Direct fsck/dev/hdxx can be.

In fact, we think about this rescue will find that the so-called rescue mode is just a shell with the Linux runtime environment, and then through Mount and chroot into the system to be repaired.
So in the absence of a rescue disk, I can use Linux LiveCD or floppy Linux to enter the shell environment and redo
Code:
# fdisk-l (view partition Condition)
# Mkdir/mnt/linux
# mkdir/mnt/linux/boot (Create a directory based on information obtained by FDISK-L)
# mount-t Ext3/dev/hda5/mnt/linux
# mount-t Ext3/dev/hda1/mnt/linux/boot (file system mounted on the hard drive)
# chroot/mnt/linux (chroot change work system)
#

You can simply enter a rescue environment.

Article turned from: http://www.th7.cn/Article/cz/li/200703/20070307120232.html

Use ISO files under virtual machines to enter Linux rescue

Open the virtual machine settings, select the Linux ISO file, and then restart the ESC disc boot, the red interface when the following input Linux rescue can be.

[Turn]linux Rescue mode: Linux rescue use detailed plots

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.