Accidental removal of libc.so.6 rescue in Linux

Source: Internet
Author: User

In Linux there will be a lot of important files, for small white, curiosity is still very big, but some files once removed caused by the consequences is unthinkable, especially in the future production environment, if arbitrarily modify, delete files, etc., the result is the server crash, caused by the shining white of silver, You should run now.

Here is an experiment I made, moving the libc.so.6 file to/app, and then my CentOS crashed, see the following steps:

(1) Use the MV command to move the libc.so.c file to the/app directory.

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/9E/3C/wKioL1mNwL-Rt5W8AABJjHecLwo878.png "style=" float : none; "title=" 1.png "alt=" Wkiol1mnwl-rt5w8aabjjheclwo878.png "/>

(2) After moving, I can see that many of my commands are useless all the time. Keep reminding me of mistakes.

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/9E/4E/wKiom1mNwMCyemX2AABgn6sKWB4948.png "style=" float : none; "title=" 2.png "alt=" Wkiom1mnwmcyemx2aabgn6skwb4948.png "/>

(3) Then I returned from the CRT to my native terminal, and saw that the screen was black and flashing, and now that CentOS has crashed.

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9E/3C/wKioL1mNwMDCm0ehAAAfeRYg31I002.png "style=" float : none; "title=" 3.png "alt=" Wkiol1mnwmdcm0ehaaaferyg31i002.png "/>

(4) At the moment, I started my rescue mode. Click to restart the client, press ESC before the progress bar to enter the rescue mode, remember that must be the ESC, one more time less do not do oh, the test hand speed to the time.

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/9E/4E/wKiom1mNwMCxoJ29AABHqZkrQXY333.png "style=" float : none; "title=" 4.png "alt=" Wkiom1mnwmcxoj29aabhqzkrqxy333.png "/>

(5) We have come in, select the third item.

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/9E/4E/wKiom1mNwMHCJvNnAAAc-x8k6U0714.png "style=" float : none; "title=" 5.png "alt=" Wkiom1mnwmhcjvnnaaac-x8k6u0714.png "/>

(6) Select the third item and enter rescue mode.

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/9E/3C/wKioL1mNwMLQwFm8AARzrBipdFs326.png "style=" float : none; "title=" 6.png "alt=" Wkiol1mnwmlqwfm8aarzrbipdfs326.png "/>

(7) is the choice of language and input method, we default English and American input method on the line.


650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/9E/4E/wKiom1mNwMOyV_BGAAAUI27IxZ8969.png "style=" float : none; "title=" 7.png "alt=" Wkiom1mnwmoyv_bgaaaui27ixz8969.png "/>650) this.width=650; src= https://s1.51cto.com /wyfs02/m01/9e/3c/wkiol1mnwmpqobebaaaqjl8vdzm431.png "title=" 8.png "alt=" Wkiol1mnwmpqobebaaaqjl8vdzm431.png " Style= "Float:none;"/>

(8) Next ask whether we choose the network, click No.

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/9E/3C/wKioL1mNwMPgMpkEAAAL1GXZSl0903.png "style=" float : none; "title=" 9.png "alt=" Wkiol1mnwmpgmpkeaaal1gxzsl0903.png "/>

(9) Click Continue to proceed to the next step.

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/9E/4E/wKiom1mNwMSCrrzAAAAmZik58-E258.png "style=" float : none; "title=" 10.png "alt=" Wkiom1mnwmscrrzaaaamzik58-e258.png "/>

(10) Default selection next.

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9E/3C/wKioL1mNwMXhqXQsAAANHujRqyk634.png "style=" float : none; "title=" 11.png "alt=" Wkiol1mnwmxhqxqsaaanhujrqyk634.png "/>

(11) Select the first one to enter the shell.

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9E/4E/wKiom1mNwMXQA066AAAOkbBo7Xc175.png "style=" float : none; "title=" 12.png "alt=" Wkiom1mnwmxqa066aaaokbbo7xc175.png "/>

(12) It is now equivalent to entering a relatively small terminal.

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/9E/4E/wKiom1mNwMaRJG6dAABdRgDkn3Q449.png "style=" float : none; "title=" 13.png "alt=" Wkiom1mnwmarjg6daabdrgdkn3q449.png "/>

(13) A lot of orders, very happy is the command can be used. Into the/app, very happy to find the file. (Remember, now we have the root attached to the/mnt/sysimage, so at the moment we enter the app is not the usual app, but/mnt/sysimage/app. )

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/9E/3C/wKioL1mNwMeAPS-IAAAnyLRWBto618.png "style=" float : none; "title=" 14.png "alt=" Wkiol1mnwmeaps-iaaanylrwbto618.png "/>

(14) After moving the exit and then restarting, you will find that the system is running slowly.

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/9E/3C/wKioL1mNwMegBRKlAABIbwOLylE403.png "style=" float : none; "title=" 15.png "alt=" Wkiol1mnwmegbrklaabibwolyle403.png "/>

(15) successfully entered the CentOS, Rescue mode success.

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9E/4E/wKiom1mNwMjigEP_AAIbR_4jvZw302.png "style=" float : none; "title=" 16.png "alt=" Wkiom1mnwmjigep_aaibr_4jvzw302.png "/>


Accidental removal of libc.so.6 rescue in Linux

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.