Symbolic link /lib /bin in root is accidently broken

Issues related to applications and software problems
Post Reply
SunSung Hwang
Posts: 3
Joined: 2020/09/11 20:38:30

Symbolic link /lib /bin in root is accidently broken

Post by SunSung Hwang » 2020/09/11 20:51:44

The symbolic link /bin, /lib, /sbin, /tomcat and /lib64 are removed "rm /* at root.
Currently, no command cannot be executed except bash builtin command such as cd, echo, etc.
Message : "/lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file and directory.
How could I restore above symbolic link with or without system reboot?

Thanking you in advance

SunSung Hwang

tunk
Posts: 768
Joined: 2017/02/22 15:08:17

Re: Symbolic link /lib /bin in root is accidently broken

Post by tunk » 2020/09/11 21:04:37

The 3 first and the last are symbolic links to /usr, e.g.:
bin -> usr/bin

Edit: and ln is /usr/bin/ln

SunSung Hwang
Posts: 3
Joined: 2020/09/11 20:38:30

Re: Symbolic link /lib /bin in root is accidently broken

Post by SunSung Hwang » 2020/09/11 22:16:47

Thanks for your response.

Test -> /usr/bin/ln : /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file and directory.

sln command seems to executed current status.
Could < sln /bin /usr/bin > be used?

SunSung Hwang
Posts: 3
Joined: 2020/09/11 20:38:30

Re: Symbolic link /lib /bin in root is accidently broken

Post by SunSung Hwang » 2020/09/11 22:50:30

This problem is solved.

sln /usr/bin /bin
sln /usr/sbin /sbin
sln /usr/lib /lib
sln /usr/lib64 /lib64

Thanks for help!

please advice /tomcat default location where to point to..
The expected location is /usr/local/tomcat7/bin.

User avatar
TrevorH
Forum Moderator
Posts: 29491
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Symbolic link /lib /bin in root is accidently broken

Post by TrevorH » 2020/09/12 13:51:35

Anything under /usr/local is not supplied by CentOS, that's for user built packages so it's something you did not us!
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - Software Support”