CentOS7 solve accidental deletion command can not lead to the use of the library

CentOS restore library

/lib64/libc.so.6 many as a library file command, this will cause a command not working. This article is to address this issue
CentOS7 solve accidental deletion command can not lead to the use of the library
after the emergence of the phenomenon shown above, turn off the power back on, press the Esc key to enter the fast rescue (rescue mode)
1. The boundary screen with a selection to boot from CD files; because my system by iso image files installed. At this time to ensure that the CD image files in the mounted state is
CentOS7 solve accidental deletion command can not lead to the use of the library
2. Select the Troubleshooting
CentOS7 solve accidental deletion command can not lead to the use of the library
3. Select rescue mode
CentOS7 solve accidental deletion command can not lead to the use of the library
4. Enter a carriage return, the original system disk is mounted to the rescue mode system mnt / lower / sysimage, selection the original system disk
permissions: continue (maintain the status quo)
the following prompt means using the command chroot / mnt / sysimage can rescue system after entering the / mnt / sysimage as the original
system /. Enter here to do a direct deal you can skip
CentOS7 solve accidental deletion command can not lead to the use of the library
5. Enter the linux rescue mode system
restore system libraries
1) Find libc.so.6 file location in the rescue mode;
2) View original system disk partitions are linked to load the next / mnt / sysimage, the original system / is now / mnt / sysimage
CentOS7 solve accidental deletion command can not lead to the use of the library
6.cp rescue mode libc.so.6 library files to the original system disks / lib64
CentOS7 solve accidental deletion command can not lead to the use of the library
after 7.exit quit automatically reboot into The system everything back to normal
CentOS7 solve accidental deletion command can not lead to the use of the library

Guess you like

Origin blog.51cto.com/14234291/2443744