During command execution or system startup, an error message that the command or lib was not found is reported.
The bin, sbin, lib, and lib64 of CentOS 7, CentOS 8, and Ubuntu 20 are soft links as follows:
lrwxrwxrwx 1 root root 7 Jun 19 2018 bin -> usr/bin
lrwxrwxrwx 1 root root 7 Jun 19 2018 lib -> usr/lib
lrwxrwxrwx 1 root root 9 Jun 19 2018 lib64 -> usr/lib64
lrwxrwxrwx 1 root root 8 Jun 19 2018 sbin -> usr/sbin
If a soft link is deleted, an error will be reported during command execution or system startup.
Check and create the required soft links as instructed in Steps.
mount
and chroot
. When running the chroot
command:cd /mnt/vm1
.cd /
.ls -al / | grep -E "lib|bin"
ln -s usr/lib64 lib64
ln -s usr/sbin sbin
ln -s usr/bin bin
ln -s usr/lib lib
chroot /mnt/vm1 /bin/bash
If no error is reported, the soft links have been successfully repaired.
5. Exit rescue mode and start the system.
Was this page helpful?