From: duwe@immd4.informatik.uni-erlangen.de (Torsten Duwe) Subject: Re: /bin files should not be linked with shared libs! Date: Thu, 18 Mar 1993 21:44:03 GMT
ctne_ltd@uhura.cc.rochester.edu (Chris Newbold) writes:
>In <1993Mar11.021924.20199@wam.umd.edu> joel@wam.umd.edu (Joel M. Hoffman) writes:
>...
>>Come to think of it, statically linked umount.static, mount.static and
>>cp.static would be enough to fix almost any shared-lib related
>>problem. No?
>I feel strongly that at least mount should be linked statically. Why? Well, I
>too have shot myself in the foot when updating shared libaries, and a shared
>ln. So, I slam in the backup root disk (which has static binaries) and fire off
>a mount. No go. mount wasn't linked static. So I'm hosed and have to reboot
>off the backup.
>I know, I know. I'm lazy because I don't want to reboot. But I think with a
>system in dire straits one should at least be able to mount a filesystem to
>get at backup files or working binaries...
Suns have a dedicated /sbin for such (and similar) cases and for booting:
duwe@faui45u:~>ll /sbin
total 733
74 -rwxr-xr-x 1 root gurus 147456 Sep 17 1992 hostconfig
68 -rwxr-xr-x 1 root gurus 20848 Sep 17 1992 hostname
69 -rwxr-xr-x 1 root gurus 180224 Sep 17 1992 ifconfig
70 -rwxr-xr-x 1 root gurus 65536 Sep 17 1992 init
72 -rwxr-xr-x 1 root gurus 32768 Sep 17 1992 intr
71 -rwxr-xr-x 1 root gurus 163840 Sep 17 1992 mount
73 -rwxr-xr-x 1 root gurus 106496 Sep 17 1992 sh
Add your favorite ln, maybe a tar for archive floppies and there you go !
Torsten