Research on rescue mode in Linux environment-repairing deleted library files or commands

Source: Internet
Author: User
Say is alert alert, but accidentally or the important library or instructions mistakenly deleted, if mistakenly deleted, how should be restored?


First, the mistaken deletion of the library libc.so.6

Take Centos7 as an example, first enter the rescue mode, the Boot interface press ESC, select the CD-ROM boot, CD drive

Then select troubleshooting

Then enter rescue mode

Point to enter after point 1, enter the following interface

Enter cp/lib64/libc.so.6/mnt/sysimage/lib64 after carriage return

At this time/lib64 is the rescue mode directory,/MNT/SYSIMAGE/LIB64 is the real/lib64 directory in the system

Exit exits after closing.


Second, mistakenly delete the command rpm

Or just follow the way to enter the rescue mode after press ENTER 1, enter the following interface input below instructions,--root=/mnt/sysimage meaning to follow the package to the root directory in/mnt/sysimage environment,--replacepkgs for forced replacement installation Exit Rescue mode after installation is complete


Research on rescue mode in Linux environment-repairing deleted library files or commands

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.