CentOS rescue mode

Source: Internet
Author: User
Keywords: rescue mode: Use & ldquo; rescue mode & rdquo; it is natural that the centos system encounters problems and the server system may no longer work normally. Sometimes when the customer needs to back up the data when the system is damaged, the rescue mode is very rescue ..... 1. the first step is to Boot your image disc (DVD). then you need to enter BIOS to modify your Boot item Boot, or you can check the fastboot shortcut of the actual machine to start it (I will show you the virtual machine)

Keywords: rescue mode

To use the "rescue mode" is a problem with the centos system, and the server system may no longer work properly. Sometimes when the customer needs to back up the data when the system is damaged, the rescue mode is very rescue .....

1. the first step is to boot your image disc (DVD)
You need to enter the BIOS to modify the Boot item boot, or check the fast Boot shortcut of the actual machine (I will show the virtual machine)
View chart

2. in the vmvirtual machine, BIOS is more traditional. press F2 to enter BIOS settings (see figure)

3. adjust the CD-ROM to the first item, that is, the system starts the re-CD boot (here with a minus number adjustment) try it yourself

4. after F10 is saved and restarted, you can go to the system installation page (select 'rescue installed system ')

5. at the next step, I thought it would be nice to keep taking the next step (some options are too difficult for you to use). Language: English keyboard: US (American keyboard)

6. during the experiment, you can skip the next step (network configuration). of course, you need to configure the actual environment. you can also configure the environment later.

7. after the network solution, you can take a look at the following:

Let me explain it.
A. enter the Rescue interface. if you select the Continue button and press enter, the Rescue mode program will automatically find the existing file systems in the system and mount them to the/mnt/sysimage directory;
B. If you select Read-Only and press enter, the existing file system will be mounted in Read-Only mode,
C. If you need to manually mount the disk, select Skip.
8. now let's continue! In this case, a small prompt appears (see the figure)

9. here we will tell you how to mount the linux system to/mnt/sysimage. if you want to obtain the root environment, run the command "chroot/mnt/sysimage" and press enter.
This prompt is displayed.

10. after the system is mounted to/mnt/sysimage and the OK mode continues, the following three modes will appear (since the rescue is not completed after a lap)

11. you can run commands in shell mode.
Fakd diagnosis mode
Then I select shell to enter the command line mode, but the file on the operating system is still not available because the file is still on the system disk.
You need to run this command first to start normal operations.
Chroot/mnt/sysimage)

12. you will find some changes after running (chroot/mnt/sysinage)

Bash-4.1 # changed to sh-4.1 #
Chroot: change root directory (change root directory ).
The rescue mode is demonstrated here first.

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.