![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() |

|
| Linux and Unix Error ! Redhat,suse,centos,mandrake,Free BSD,Sun |
![]() |
|
Moved the /lib directory on centos linux.. "bad ELF interpreter"... Nothing works..
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Administrator
Posts: 18,702
Join Date: Jan 2006
Rep Power: 10
IM:
|
Due to working while moderately stressed and under pressure, I embaressingly made an utterly stupid and unforgiveable mistake. I, for reasons best left unsaid, on a linux server, ran, more or less, the following commands: cd / mkdir archive mv * archive/ This, of course, has resulted in every directory in the / directory being moved to /archive. feel free to laugh now.. ![]() I now have the enviable task of getting every directory in /archive back into / via the one remote shell that I have left open to me (can't open any more obviously). examples of attempts: [root@krynn bin]# ls bash: /bin/ls: No such file or directory [root@krynn bin]# /archive/bin/ls bash: ./ls: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory The same response is given for the commands mv, ln, chroot, cp. I now place my sanity in your hands.. short of arriving physically at the server with a rescue disk and moving the directories back, is there any method that you can possibly think of to get those directories back where they should be via the ssh session I have left open? |
|
|
|
|
|
|
|
|
#2 (permalink) |
|
Administrator
Posts: 18,702
Join Date: Jan 2006
Rep Power: 10
IM:
|
worked? No, try LD_LIBRARY_PATH="/archive/lib:$LD_LIBRAR |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|