Traduisez - Übersetzen - Traduzca - Traduza - Tradurre - Translate

tomsrtbt - Rescue Disk

roberb7@uniserve.com
Tue, 10 Mar 1998 08:06:06

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