How to use the rescue mode of CentOS
This article introduces the relevant knowledge of "how to use the rescue mode of CentOS". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Rescue mode is a system rescue method used in emergency, which can repair and retrieve system files (system files, non-system files can not be recovered through this mode) that are accidentally lost or deleted in the system. The rescue mode of Linux system is a special system mode, which is loaded and started in the form of CD. It is also an independent "abbreviated" system, which still has most of the functions of the normal system and can execute most of the commands of the normal system.
First, prepare the system installation disk and start using the installation disk: select the third item: Troubleshooting
Go to the Troubleshooting interface and choose the second item: Rescue a CentOS Linux system
Enter 1 in the Rescue option, that is, select Continue, and then enter enter.
Select Continue, and the rescue mode program automatically looks for existing file systems on the system and mounts them to the / mnt/sysimage directory. Select Read-Only to mount the existing file system as read-only. Skip is mounted manually. Advanced, the advanced options are not explained.
4. The original system mount path / mnt/sysimage. If you want to obtain the original system root environment, execute the line command: chroot / mnt/sysimage. Enter to enter the shell interface.
Enter the shell interface operation command
This is the end of the content of "how to use the Rescue Mode of CentOS". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!