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
Symbolic link /lib /bin in root is accidently broken
-
- Posts: 3
- Joined: 2020/09/11 20:38:30
Re: Symbolic link /lib /bin in root is accidently broken
The 3 first and the last are symbolic links to /usr, e.g.:
bin -> usr/bin
Edit: and ln is /usr/bin/ln
bin -> usr/bin
Edit: and ln is /usr/bin/ln
-
- Posts: 3
- Joined: 2020/09/11 20:38:30
Re: Symbolic link /lib /bin in root is accidently broken
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?
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?
-
- Posts: 3
- Joined: 2020/09/11 20:38:30
Re: Symbolic link /lib /bin in root is accidently broken
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.
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.
Re: Symbolic link /lib /bin in root is accidently broken
Anything under /usr/local is not supplied by CentOS, that's for user built packages so it's something you did not us!
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke