From owner-freebsd-questions@FreeBSD.ORG Sun Jun 11 17:39:31 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90DE416A41A for ; Sun, 11 Jun 2006 17:39:31 +0000 (UTC) (envelope-from enigma@k1.com.br) Received: from smtp.k1.com.br (customer-200195196249.onda.com.br [200.195.196.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id B46A943D45 for ; Sun, 11 Jun 2006 17:39:29 +0000 (GMT) (envelope-from enigma@k1.com.br) Received: from infopar.com.br (localhost [127.0.0.1]) by smtp.k1.com.br (8.13.5/8.13.5) with ESMTP id k5BEMBkK005042 for ; Sun, 11 Jun 2006 14:39:28 -0300 (BRT) X-MessageWall-Score: 0 (infopar.com.br) Received: from [201.21.131.24] (authenticated as lenzi) by infopar.com.br (MessageWall 1.0.8) with SMTP; 11 Jun 2006 17:39:27 -0000 From: Sergio Lenzi To: freebsd-questions@freebsd.org In-Reply-To: <20060611165532.GA30725@xor.obsecurity.org> References: <20060611165532.GA30725@xor.obsecurity.org> Date: Sun, 11 Jun 2006 14:39:12 -0300 Message-Id: <1150047552.9695.4.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 FreeBSD GNOME Team Port Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: accidently deleted /lib/libm.so.4 and /lib/libc.so.6 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: Sun, 11 Jun 2006 17:39:31 -0000 Em Dom, 2006-06-11 ās 12:55 -0400, Kris Kennaway escreveu: > On Sun, Jun 11, 2006 at 11:21:43AM +0100, Soo-Hyun Choi wrote: > > Hi, > > > > I accidently deleted /lib/libm.so.4 and /lib/libc.so.6 on my FreeBSD > > 6.1 RELEASE systsem. After this, even 'ls' command is not working. > > > > Is there any possibility that I can restore the system? > > You can use the tools in /rescue to help recover from a backup > copy..if you don't have a backup copy accessible then you may have to > reinstall. > > Kris Easy... 1) boot from install cd (cd1) 2) choose rescue 3) wait for the system to boot with the / filesystem on the CD (or memory...) 4) fsck -y /dev/ad0s1a (or the root filesystem in the hd...) 5) mount /dev/ad0s1a /mnt (mount the hd filesystem....) 6) cd / 7) tar cf - lib | tar xvf - -C /mnt (this will restore all the libs you needed from the distribution CD) 8) fastboot (reboot the system..., should work.)...