I do note that your /lib/ld-linux.so.2 is a symbolic link to
/usr/local/lib/ld-linux.so.2. Note, when you are booted to tomsrtbt with
your drive mounted on /mnt- so the link won't work, even if it finds
the loader in /mnt/lib!!! You might need to make a link from
/lib/ld-linux.so.2 => /mnt/usr/local/lib/ld-linux.so.2. It probably also
needs the LD_LIBRARY_CONFIG path.
Please do pursue this and let me know what you find.
-Thanks
-Tom
On Tue, 10 Mar 1998 roberb7@uniserve.com wrote:
> Date: Tue, 10 Mar 1998 08:06:06 -0000=?us-ascii?Q?_(=FF=BF=AFb=08=08=90=F6=FF=BF=B4=EF=08=08=90=B0=11=08=90=F6=FF=BF=FD=EF=08=08n=F4=045?=
> From: roberb7@uniserve.com
> To: linux@ee.ubc.ca
> Cc: tom@toms.net
> Subject: tomsrtbt - Rescue Disk
>
> I say this piece of software in comp.os.linux.announce. I downloaded
> and installed it, and it's promising; it puts a lot of useful stuff on
> one floppy disk.
>
> There, of course, is this problem, and I need some help with it. Once
> I get a kernel booted, a RAM disk loaded, and a login: prompt, the
> next thing I do is mount my normal hard disk, as /mnt. I can then cd
> to various places under /mnt, and everything looks OK. However, if I
> cd to /mnt/bin, then enter "./gzip -help", I get "./gzip: not found".
> The "not found" error occurs with most, but not all, binaries. For
> example, "top" works OK.
>
> When I rebooted with my usual kernel, I did "ldd gzip" and got:
>
> libc.so.6 => /lib/libc.so.6 (0x40002000)
> /lib/ld-linux.so.2 => /usr/local/lib/ld-linux.so.2 (0x2aaaa000)
>
> "ldd top" gives:
>
> libproc.so.1.2 => /lib/libproc.so.1.2 (0x40002000)
>
> I was led to suspect that this was a shared library issue. The /etc
> directory that is created by tomsrtbt has an ld.so.cache file. It, of
> course, would not reference anything in /mnt/lib. (I have tried
> setting LD_LIBRARY_PATH, by the way.) So, the next time I tried out
> tomsrtbt, I copied /mnt/etc/ld.so.conf to /etc, edited /etc/ld.so.conf
> to add /mnt/lib, and ran ldconfig. (ldconfig is another one of my
> binaries that works; ldd gives "not a dynamic executable".) As far as
> I can tell, ldconfig did what it was supposed to do; /etc/ld.so.cache
> now contains lots of /mnt/lib files. This, however, did not make my
> "not found" error go away.
>
> Any ideas?
>
> -----
> Bob Broughton
> mailto:roberb7@uniserve.com
> WWW: http://users.uniserve.com/~roberb7
> Vancouver, BC, Canada
>