From owner-freebsd-questions@FreeBSD.ORG Fri Jun 2 01:12:26 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 C859616BACA for ; Fri, 2 Jun 2006 01:12:21 +0000 (UTC) (envelope-from jhorne@dfwlp.com) Received: from zeus.int.dfwlp.com (zeus.dfwlp.com [208.11.134.127]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9C1343E13 for ; Fri, 2 Jun 2006 01:11:42 +0000 (GMT) (envelope-from jhorne@dfwlp.com) Received: from hera.int.dfwlp.com (hera.int.dfwlp.com [192.168.125.82]) (authenticated bits=0) by zeus.int.dfwlp.com (8.13.6/8.13.6) with ESMTP id k521BcQj074047 for ; Thu, 1 Jun 2006 20:11:38 -0500 (CDT) (envelope-from jhorne@dfwlp.com) From: Jonathan Horne To: freebsd-questions@freebsd.org Date: Thu, 1 Jun 2006 20:11:38 -0500 User-Agent: KMail/1.9.1 References: <200605312116.39802.jhorne@dfwlp.com> <200606010228.k512SlPU084575@banyan.cs.ait.ac.th> In-Reply-To: <200606010228.k512SlPU084575@banyan.cs.ait.ac.th> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606012011.38323.jhorne@dfwlp.com> X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on zeus.int.dfwlp.com Subject: Re: system recovery 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: Fri, 02 Jun 2006 01:12:37 -0000 On Wednesday 31 May 2006 21:28, Olivier Nicole wrote: > > or, can someone recommend how i might use that tarball of my entire > > system to quickly get a new system up and running (all this with the > > assumtion that i have not changed any hardware configurations). if > > someone has time to answer quickly, i would sure appreciate it. > > I think that the recovery system that lies on one of the CDs has > tar. You could boot the recovery system and untar the things. > > Olivier > _______________________________________________ well, i sucessfully recovered my system, back just as it was before my tinkering got out of control. here was my (probably quite unorthodox) method: 1) mount my external drive that contained my system tarball. untar the entire backup of the old system 2) rm -rf /boot, and replace it with my old (which had my recompiled kernel) 3) cd to usr, then cp -vpnRP src obj /usr. (this recovered my most recently built world) 4) reboot to single, do my mergematers and install world, reboot back to normal again. 5) enter the directory that holds my untarred system backup. cp -vpnRP * / (this copied the root of the old, over the root of the new, but skipping anything that exists... assuming that anything that exists that is crashably inportnat, was recently upgraded with the buildworld) 6) rm -rf /etc/ and /usr/local/etc/. replace both with etc/ and usr/local/etc/ from the tarball. 7) reboot. i logged in as my normal user, which i did not create as a part of my reinstall. everything seems to have picked up and kept going as if nothign happened, excluding /tmp.... i could not write to it at first (and thus, could not startkde, but i 777'd it and now things are working). it took me 3 attempts to finally cp -vpnRP correctly, without spewing files all over the wrong places, but i have to say, im pretty happy with my result! (/me scratches "practice total system recovery" off list of things to do) cheers, jonathan