Accidentally moved /libexec/ld-elf.so.1

Steve Bertrand steve at ibctech.ca
Sat Aug 22 00:15:22 UTC 2009


Polytropon wrote:
> Replying to my own message in order to clarify:
> 
> On Sat, 22 Aug 2009 01:53:43 +0200, Polytropon <freebsd at edvax.de> wrote:
>> On Fri, 21 Aug 2009 19:28:47 -0400, Stew Houston <stewhouston at gmail.com> wrote:
>>> However, being the blundering newbie I am, I was
>>> working in the /tmp directory, which seems to have been cleared (or is empty
>>> for whatever reason in the current state.) 
>> Cleaning the /tmp directory at startup usually is controlled
>> via an /etc/rc.conf setting: it's clear_tmp_enable="YES".
> 
> As Glen suggested: If /tmp resides on its own partition, it could
> still be intact. So mount /tmp and copy the file:
> 
> 	# mount /tmp
> 	# cp /tmp/ld-elf.so.1 /libexec
> 
> 
> 
>> As far as I got from searching for "ld-elf" related stuff,
>> a command like
>>
>> 	# cd /usr/src/libexec/rtld-elf
>> 	# make install
>>
>> could do the trick. But I haven't checked this, and I am
>> not sure.
> 
> I checked now. The "make" command produces ld-elf.so.1, at least
> on my system. If "make install" doesn't work correctly, copy
> the file manually.
> 
> 	# cd /usr/src/libexec/rtld-elf
> 	# make
> 	# cp ld-elf.so.1 /libexec
> 
> Of course, you will need to have /usr mounted if it's not on
> the / partition.

I don't know if it will help or not, but here is a link to the file in
question.

If all of the other great recommendations don't pan out, you may be able
to boot from some form of 'live cd', and then fetch the file into place.

http://www.ipv6canada.com/ld-elf.so.1

% mount /dev/ad0s1a /mnt # where ad0s1a is your / on the hard disk
% cd /mnt/libexec
% fetch http://www.ipv6canada.com/ld-elf.so.1
% reboot

Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3233 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090822/a11f72f9/smime.bin


More information about the freebsd-questions mailing list