Sponsored Content
Top Forums UNIX for Advanced & Expert Users Mistakenly renamed libdl.so: system got corrupted Post 302484459 by Neo on Friday 31st of December 2010 08:45:29 AM
Old 12-31-2010
Hmmm....

I think most people don't have busybox installed on their ubuntu systems. In order to illustrate this, I will login to three ubuntu servers on the net and see if busybox has been installed:

First server (Dedicated Ubuntu server in EU):

Code:
user@dedicated:~# /bin/busybox
-bash: /bin/busybox: No such file or directory

Second server (Slicehost Ubuntu server in US, East Coast):

Code:
user@slicehost:~# /bin/busybox
-bash: /bin/busybox: No such file or directory

Third server (Linode Ubuntu server, Central US):

Code:
user@linode:~# /bin/busybox 
-bash: /bin/busybox: No such file or directory

---------- Post updated at 13:36 ---------- Previous update was at 13:25 ----------

Also, FWIW, I just did a standard apt-get install busybox install on a 64 bit Ubuntu server, and got an ELF dynamic installation:

Code:
user@linode:~# apt-get install busybox
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  busybox
0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.
Need to get 335kB of archives.
After this operation, 586kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  busybox
Install these packages without verification [y/N]? yes
Get:1 http://ftp2.de.debian.org lenny/main busybox 1:1.10.2-2 [335kB]
Fetched 335kB in 1s (307kB/s)   
Selecting previously deselected package busybox.
(Reading database ... 18074 files and directories currently installed.)
Unpacking busybox (from .../busybox_1%3a1.10.2-2_amd64.deb) ...
Processing triggers for man-db ...
Setting up busybox (1:1.10.2-2) ...


Code:
user@linode:~# /bin/busybox
BusyBox v1.10.2 (Debian 1:1.10.2-2) multi-call binary
Copyright (C) 1998-2007 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

Usage: busybox [function] [arguments]...
   or: function [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use and BusyBox
        will act like whatever it was invoked as!

Currently defined functions:
        [, [[, adjtimex, arping, ash, awk, basename, brctl, bunzip2, bzcat, bzip2, cal, cat, chgrp, chmod, chown, chroot,
        chvt, clear, cmp, cp, cpio, cut, date, dc, dd, deallocvt, df, dirname, dmesg, dos2unix, du, dumpkmap, echo, egrep,
        env, expr, false, fgrep, find, fold, free, ftpget, ftpput, getopt, grep, gunzip, gzip, head, hexdump, hostid, hostname,
        httpd, id, ifconfig, ip, ipcalc, kill, killall, klogd, last, length, ln, loadfont, loadkmap, logger, logname, logread,
        losetup, ls, lzmacat, md5sum, mkdir, mkfifo, mknod, mktemp, more, mount, mt, mv, nameif, nc, netstat, nslookup, od,
        openvt, patch, pidof, ping, ping6, printf, ps, pwd, rdate, readlink, realpath, renice, reset, rm, rmdir, route, rpm,
        rpm2cpio, run-parts, sed, setkeycodes, sh, sha1sum, sleep, sort, start-stop-daemon, strings, stty, swapoff, swapon,
        sync, sysctl, syslogd, tac, tail, tar, tee, telnet, test, tftp, time, top, touch, tr, traceroute, true, tty, umount,
        uname, uncompress, uniq, unix2dos, unlzma, unzip, uptime, usleep, uudecode, uuencode, vi, watch, watchdog, wc, wget,
        which, who, whoami, xargs, yes, zcat

Code:
user@linode:~# ldd /bin/busybox
        linux-vdso.so.1 =>  (0x00007fff01dff000)
        libm.so.6 => /lib/libm.so.6 (0x00007fbf29a6d000)
        libc.so.6 => /lib/libc.so.6 (0x00007fbf296fd000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fbf29cf1000)

Code:
user@linode:~# file /bin/busybox
/bin/busybox: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), stripped

---------- Post updated at 13:45 ---------- Previous update was at 13:36 ----------

And just a note, I just checked and to get a static version of busybox on ubuntu, you need to

Code:
apt-get install busybox-static

Resulting in:

Code:
user@linode:~# file /bin/busybox
/bin/busybox: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, for GNU/Linux 2.6.8, stripped

user@linode:~# ldd /bin/busybox
        not a dynamic executable

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

mistakenly issued crontab -r

HPUX 11 (32bit) An ordinary user (not root) had mistakenly issued "crontab -r" which removed the crontab file corresponds to his user_id. (well, on our keyboard R is next E, where "crontab -e" is to edit the crontab file) :( Is there any way to recover the removed crontab file by that... (2 Replies)
Discussion started by: kanang
2 Replies

2. Shell Programming and Scripting

duplicate index names renamed

Hello everyone ! Please have a minute and see if you know how to script this I have a file like this: "create table .... ... create index n112 on ... ... create table ... .... create index n113 on... ... create table ... create index n112 on ...! duplicate ... (1 Reply)
Discussion started by: sotoc79
1 Replies

3. Shell Programming and Scripting

rsync - update file on backup when file renamed on source

hi all, Please help me with rsync. I configured rsync to preserve timestamps using the -a option. When i renamed fileA to fileB on source machine I have to copies at the backup server. The aim is to keep the most recent file. fileA & fileB has same contents. When i renamed fileB to... (2 Replies)
Discussion started by: coolatt
2 Replies

4. UNIX for Advanced & Expert Users

Critical lib renamed

Hello I have moved a critical lib from its location, so all programms linked to libc dont work . I still have two shells on the machine, bash and ksh The only thing I see is copying back the lib, but of course : dd, cp , mv etc are dead . So i tryed a loop with read ... {^Jwhile read... (24 Replies)
Discussion started by: remi75
24 Replies

5. Solaris

Renamed lib directory by mistake

Let's say someone accidentally renamed the lib directory in Solaris 8, and now they cannot get into the terminal or even rename the folder via file manager.What would one do? (37 Replies)
Discussion started by: jetjaguar
37 Replies

6. Solaris

UFS File System Periodically Corrupted - What to check?

The system is a SunFire V440 running SunOS 5.10 About once every 3-4 weeks, the system will reboot into single user mode on its own, and then I run svcs -xv, the filesystem service and dependent services will be disabled due to the metadisk file system being corrupted. The I've been doing... (2 Replies)
Discussion started by: the.gooch
2 Replies

7. Solaris

recover a corrupted solaris10 system /usr/lib

did something very dump under /usr/lib, eg: overwite a bunch of files from a similar system's /usr/lib, while the system is live.. I have no backup on this..it crashed...and came up with a bunch of device driver load errors and hung... This is Solaris10 update 7 .. I wonder if I could do a... (0 Replies)
Discussion started by: ppchu99
0 Replies

8. Shell Programming and Scripting

who renamed my executable

Hi All, I connected via rlogin in testing environment (ksh ) and placed an executable with -rwxr-xr-x permission. eg: from my own unix box used : rlogin host -l user But the exe was renamed by somebody. since it's only renaming none of the access time , modification time etc is altered.... (2 Replies)
Discussion started by: blackcat
2 Replies

9. Shell Programming and Scripting

Renaming file and check for the renamed file existence

Hi Am trying to move a file from one name to another When I do "ls" to check for the moved filename I can see the file but when I try the same with a script am unable.. I think am doing some pretty silly error.. please help.. toMove=`ls | grep -E "partition.+"` mv $toMove partition._org... (7 Replies)
Discussion started by: Priya Amaresh
7 Replies

10. Ubuntu

Renamed Volume Group name on Webmin while running samba server (oops)

Hi...I'm new to Linux and was working on a home server. I have it operational with Samba Share as my NAS system. Unfortunately, while I was on Webmin I changed the Logical Volume Group Name and now I can't find the data I had saved on my Samba Server. Can anyone help me recover those files? ... (0 Replies)
Discussion started by: pangil
0 Replies
All times are GMT -4. The time now is 05:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy