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;