종속 라이브러리를 삭제하고 복구 모드 복구를 입력 리눅스는
파일이 삭제되는 것을 종속성 시뮬레이션하고, 응급 복구 모드 복구를 입력
시스템 : CentOS7
첫째, MV 종속 라이브러리를 삭제
삭제 /lib64/libc.so.6를
[root@centos7 Packages]# which mv
alias mv='mv -i'
/usr/bin/mv
[root@centos7 Packages]# ldd /usr/bin/mv
linux-vdso.so.1 => (0x00007ffd51946000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f40c2bd9000)
libacl.so.1 => /lib64/libacl.so.1 (0x00007f40c29d0000)
libattr.so.1 => /lib64/libattr.so.1 (0x00007f40c27cb000)
libc.so.6 => /lib64/libc.so.6 (0x00007f40c23fe000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f40c219c000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f40c1f98000)
/lib64/ld-linux-x86-64.so.2 (0x00007f40c2e00000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f40c1d7c000)
[root@centos7 Packages]# rm -f /lib64/libc.so.6
뮤직 비디오 명령 후 삭제하고, 많은 변화는 사용할 수 없습니다
[root@centos7 Packages]# mv /etc/fstab .
mv: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
[root@centos7 Packages]# cp /etc/fstab .
cp: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
[root@centos7 Packages]# poweroff
poweroff: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
둘째, 광학에서, 부팅 종료를 강제
0의 BIOS에 CD-ROM에서 부팅하기
1, 문제 해결
2, Recure에 CentOS 시스템 (복구 모드)
3 입력 1 트랜스
4 시스템을 / mnt / sysimage 이렇게에 장착 된 것을 건의 Enter 키를 누릅니다
5, 복사 된 CD 라이브러리
/ lib64에 / sysimage 이렇게을 / mnt /에 파일, 사용 CP를 복사 MV하지 마십시오, 그렇지 않으면 디스크 시스템이 다시 고장
셋째, 시스템은 정상적인 사용 후 다시 시작되었습니다
[root@centos7 ~]# cp /etc/fstab . -a
cp: overwrite ‘./fstab’? y
[root@centos7 ~]# mv fstab /tmp