From owner-freebsd-questions@FreeBSD.ORG Sat Aug 22 00:45:57 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C971D106568C for ; Sat, 22 Aug 2009 00:45:57 +0000 (UTC) (envelope-from stewhouston@gmail.com) Received: from mail-vw0-f180.google.com (mail-vw0-f180.google.com [209.85.212.180]) by mx1.freebsd.org (Postfix) with ESMTP id 7A5188FC28 for ; Sat, 22 Aug 2009 00:45:57 +0000 (UTC) Received: by vws10 with SMTP id 10so1011204vws.7 for ; Fri, 21 Aug 2009 17:45:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=UI0mex/JOVwiu4QKfp1vjORc9vnvhxRwYBfiBnlJgC4=; b=v+Ynd2qU1f2nN1TdcGzmx/h5nHDqyG0icgeEYr3XKAnb6BT4aox01cUtDtrG6EONpW F5UdQ4nfy4RSfVIL+GObhRQmbBuOotzmALTPAXdhkNpS23+XrQvMqeLnSZQKutMZvMYt +EaK3Jb7+UZ0y9jQmPw0dUtYLWzwTK9goFzxw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=FJIecHpuBnRtNmx7aYQKdMD6Gbf1yYqBqmlpslMGlmSK2Ezudw3hPgBtF1ikAmnx/X BX2oKeHx2d6XUaZdD1GIBkHwSeghMxoiny1BZER9vEGpG01kIZUZj6svRDVGMVwO7Ed3 MAZa2YbH6E48Dsdj/s3o4Bqcq/GmBrrngr9dg= MIME-Version: 1.0 Received: by 10.220.79.84 with SMTP id o20mr1826797vck.82.1250901955246; Fri, 21 Aug 2009 17:45:55 -0700 (PDT) In-Reply-To: <4A8F3893.7060606@ibctech.ca> References: <5a1fc34c0908201944g63f45b7ar1d53149fd5029a95@mail.gmail.com> <200908202124.29206.mel.flynn+fbsd.questions@mailing.thruhere.net> <5a1fc34c0908211628t7e58adabqc4aef9f2bb08d69b@mail.gmail.com> <20090822015343.bad7fdfc.freebsd@edvax.de> <20090822015856.9ae791e1.freebsd@edvax.de> <4A8F3893.7060606@ibctech.ca> Date: Fri, 21 Aug 2009 20:45:55 -0400 Message-ID: <5a1fc34c0908211745u6c58ddd5ud52df9c51e3cbd51@mail.gmail.com> From: Stew Houston To: Steve Bertrand Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Polytropon , freebsd-questions@freebsd.org Subject: Re: Accidentally moved /libexec/ld-elf.so.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Aug 2009 00:45:57 -0000 Thank you all for the wonderful help. I've recovered the file and the system is fully operational. The solution that worked was: Single User Mode /rescue/sh /rescue/mount / /rescue/mount /tmp /rescue/mv /tmp/libexec/ld-elf.so.1 /libexec As I spent my entire youth on Windows, I can honestly say this is the first time this type scenario didn't end in reformatting. FreeBSD is rockin' Stew On Fri, Aug 21, 2009 at 8:15 PM, Steve Bertrand wrote: > Polytropon wrote: > > Replying to my own message in order to clarify: > > > > On Sat, 22 Aug 2009 01:53:43 +0200, Polytropon wrote: > >> On Fri, 21 Aug 2009 19:28:47 -0400, Stew Houston > 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 >