1, first in the BIOS set the boot option to DVD drive boot or USB boot is also possible
2. Select "Rescue installed System" from the option that appears after the CD is booted and press ENTER to confirm the figure:
3, the language choice, here we choose the default is possible, because it is not graphical, so there is no way to support Chinese, the keyboard also choose the default and then press ENTER, specific as:
4, in setupnetworking here we according to their own needs to confirm whether to enable the network, here I choose is not enabled,
5, continue is to let the virtual system (that is, the rescue environment) to find the installed Linux system and read and write to mount to/mnt/sysimage, which is the most common way, read-only read-only mount, do not make any changes, When using continue and read-only can not mount the partition when we use the skip way, to find their own partition, without system help, not suitable for beginners, advanced is used to configure storage-related,
6, the hint is that the Linux system has been hung in the/mnt/sysimage directory, if we want to get the root environment, we need to perform "chroot/mnt/sysimage"
Press twice to enter the following mode:
The meanings of these three modes are:
Shell: Directly into the command line, you can do the operation has to edit files, modify user password, etc.
FAKD: Diagnostic mode
Reboot: Direct Restart
7. Select the shell to enter the root environment, such as in the root environment
8, into the root environment can not operate the hard disk on the Linux system files, but also to enter the Chroot/mnt/sysimage command before you can operate the file on the hard disk,
Enter Chroot/mnt/sysimage after press ENTER will find that the original is bash-4.1 will become sh-4.1, this time you can work on the file on the hard disk.
Under sh-4.1 does not support reboot restart, you must exit to bash-4.1 can use reboot to restart the system, after restarting the system select "Bootfrom local drive" This option will be able to boot into the system normally. Small white Experimental notes, the wrong place also ask the big God to correct.
CentOS Rescue Mode Lab Notes