How to enter rescue mode in Centos6.5

Source: Internet
Author: User

How to enter rescue mode in Centos6.5

Version used: Centos6.5

What is the role of the rescue mode:

◆ You can change the root password;

◆ Recover disk and file system operations;

◆ When the system cannot be started, it can only be started in rescue mode;

The procedure for starting the rescue mode is as follows:

1. First, BOOT into the BIOS settings (each computer enters the bios in different ways according to your computer), the BOOT sequence isThe disc preferentially starts the CD-ROM Drive and uses the plus-sign of the keypad to adjust the upper and lower order; after setting, save and exit.

2. After the system is restarted, go to the installation and Startup menu and move the up and down keysRescue install system Rescue installation system;

3. Select a language to keep the default valueEnglish

4. Select the keyboard type to keep the default valueUs

5. Select whether to start the network based on your actual situation. If you need to copy data over the Internet, select YES. Here we choose NO;

6. Go to the Rescue page and selectContinue

7. Mount the system to/mnt/sysimage. If the system is to be mounted to the root environment, run the chroot/mnt/sysimage command.

8. Three options: shell enters the command line mode; fakd is the diagnosis mode; reboot restarts the computer; here we chooseShell

9. Enter the shell command line, and the prompt is bash-4.1 #

Ls/mnt/sysimage/display the mounted directory as the root directory file

RunChroot/mnt/sysimage/move the files in the/mnt/sysimage/directory to the root directory;

Command Prompt sh-4.1 #

Ls is the root directory file;

10. In sh-4.1 # mode, you must firstExit and exit. Return to bash-4.1 #.Reboot restarts the system;

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.