Recovery from “rm -rf /bin”

Just hit such a case, mis drop the folder “/bin”.

Enterprise Linux Enterprise Linux Server release 5.7 (Carthage)
Linux 2.6.32-100.37.1.el5uek

os still work. just /bin/ tools no longer functioning, no new access as “/bin/bash” not available.

#Solution.

Now what can be used: scp, vim .. and others in /usr/bin/

Lucky, to find a similar configured box, which should be the same packages version level or lower.

Im using :coreutils-5.97-23.el5
tried to find a box using :coreutils-5.97-23.el5_4.2

##
[root@box09 bin]# scp -r ractest@box06:/bin/ /

##
the bins with a bit lower version works fine within current os, as current platform libs provide a compatible runtime.
to solve the problem completely, run #yum update/reinstall to replace all binaries.

Regards,
-suse

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.