Test notes for centos rescue mode 1. set the startup option in BIOS to a DVD drive or USB boot. 2. Select & ldquo from the options that appear after the disc is started; rescueinstalledsystem & rdquo; then press Enter to confirm, as shown in figure 3.
Lab Notes for centos rescue mode
1. first, set the boot option in the BIOS to a DVD drive or USB boot.
2. select "Rescue installed system" from the options that appear after the disc is started, and press enter to confirm. The figure is as follows:
3. select the language. here we can select the default one. because it is not graphical, it is impossible to support Chinese characters. select the default keyboard and press Enter. for details, see:
4. in SetupNetworking, we can determine whether to enable the network based on our own needs. here, I choose not to enable the network,
5. Continue is the most common method for the virtual system (that is, the Rescue environment) to locate the installed Linux system and mount it to/mnt/sysimage in read/write mode, read-Only is mounted in Read-Only mode without any modification. when you cannot mount a partition using Continue or Read-Only, we use the Skip method to find the partition by ourselves without the help of the system, not suitable for beginners. Advanced is used for storage configuration,
6. the prompt is that the Linux system has been mounted to the/mnt/sysimage Directory. if we want to obtain the root environment, run "chroot/mnt/sysimage"
Press enter twice to enter the following mode:
The three modes mean:
Shell: you can directly access the command line to edit files and change user passwords.
Fakd: diagnostic mode
Reboot: restart directly
7. select shell and enter the root environment, for example, in the root environment.
8. you cannot operate files in the Linux system on the hard disk in the root environment. you must enter the chroot/mnt/sysimage command to operate files on the hard disk,
After entering chroot/mnt/sysimage, press enter and you will find that the original bash-4.1 will change to sh-4.1. in this case, you can operate on the files on the hard disk.
In sh-4.1, reboot is not supported. you must exit bash-4.1 to use reboot to restart the system, after the system is restarted, select the "Bootfrom local drive" option to start and enter the system normally. Please correct me if you have any mistakes.