Date: Sun, 11 Jun 2006 14:39:12 -0300 From: Sergio Lenzi <enigma@k1.com.br> To: freebsd-questions@freebsd.org Subject: Re: accidently deleted /lib/libm.so.4 and /lib/libc.so.6 Message-ID: <1150047552.9695.4.camel@localhost> In-Reply-To: <20060611165532.GA30725@xor.obsecurity.org> References: <f64556f70606110321s13a0fb90v387e95cba972c412@mail.gmail.com> <20060611165532.GA30725@xor.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.)...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1150047552.9695.4.camel>