From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OORcg-0008Ap-PC for garchives@archives.gentoo.org; Tue, 15 Jun 2010 08:35:55 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AE16BE0B78; Tue, 15 Jun 2010 08:34:04 +0000 (UTC) Received: from mta-1.ms.rz.rwth-aachen.de (mta-1.ms.rz.RWTH-Aachen.DE [134.130.7.72]) by pigeon.gentoo.org (Postfix) with ESMTP id 302C6E0B78 for ; Tue, 15 Jun 2010 08:34:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-disposition: INLINE Content-type: TEXT/PLAIN; CHARSET=us-ascii Received: from ironport-out-1.rz.rwth-aachen.de ([134.130.5.40]) by mta-1.ms.rz.RWTH-Aachen.de (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008)) with ESMTP id <0L41004UDRSRLF40@mta-1.ms.rz.RWTH-Aachen.de> for gentoo-user@lists.gentoo.org; Tue, 15 Jun 2010 10:34:03 +0200 (CEST) X-IronPort-AV: E=Sophos;i="4.53,419,1272837600"; d="scan'208";a="61437576" Received: from relay-2.ms.rz.rwth-aachen.de (HELO relay.rwth-aachen.de) ([134.130.7.75]) by ironport-in-1.rz.rwth-aachen.de with ESMTP; Tue, 15 Jun 2010 10:34:03 +0200 Received: from numa-i.igpm.rwth-aachen.de (numa-i.igpm.RWTH-Aachen.DE [134.130.161.252]) by relay.rwth-aachen.de (8.13.8+Sun/8.13.8/1) with ESMTP id o5F8Y3lD006513 for ; Tue, 15 Jun 2010 10:34:03 +0200 (CEST) Received: by numa-i.igpm.rwth-aachen.de (Postfix, from userid 230) id BFEBC107E; Tue, 15 Jun 2010 10:34:07 +0200 (CEST) Date: Tue, 15 Jun 2010 10:34:07 +0200 (CEST) From: Helmut Jarausch Subject: Re: [gentoo-user] root partition lost - backup too old - please help To: gentoo-user@lists.gentoo.org In-reply-to: <4C16859D.7020501@gmail.com> Message-id: References: <201006142024.24031.volkerarmin@googlemail.com> <201006142119.54426.volkerarmin@googlemail.com> <4C16859D.7020501@gmail.com> X-Archives-Salt: 76785969-88e4-4c21-b058-cc40c3ca91d0 X-Archives-Hash: 3c67a63241b687b50347d88f476f8104 On 14 Jun, Dru Kargin wrote: > On 06/14/10 12:19, Volker Armin Hemmann wrote: >> On Montag 14 Juni 2010, Helmut Jarausch wrote: >> >>> On 14 Jun, Volker Armin Hemmann wrote: >>> >>>> On Montag 14 Juni 2010, Helmut Jarausch wrote: >>>> >>>>> Hi, >>>>> >>>>> due to a disk crash I've lost my root partition. >>>>> Unfortunately, the backup version is 4 weeks old. >>>>> But my /usr partition is up-to-date and I have >>>>> binary build-pkgs. >>>>> What's the fastest way to restore the portage-relevant >>>>> data on the root partition? >>>>> >>>>> Many thanks for a hint, >>>>> Helmut. >>>>> >>>> if /var/db survived, you can grep for /bin /lib /sbin etc in /var/db and >>>> install the packages hit. >>>> >>> Thanks, but unfortunately /var was on the root partition. >>> >>> So, I have to emerge -k --update @world @system . >>> >>> Helmut. >>> >> except that without /var portage does now know what @system or @world is made >> off. >> >> > If you have a 4-week old version of /var/db, you can probably use that > for the sake of rebuilding/unpackaging system and world. Hopefully, > system and world won't have changed so much in four weeks that a > ground-up rebuild will be more efficient. Yes, I'm trying that. Though I've encountered some difficulties. E.g. the 'old' system had gcc-4.4.3-r2 in slot (4.4) while the /usr partition contained gcc-4.4.4. Trying to emerge gcc-4.4.4 (binary) portage went into a loop (at least it would have taken more than an hour on a fast machine). I had to fetch /etc/env.d/gcc from a similar machine here. The problem seems to be that during installation portage tries to remove a version which isn't installed anymore. Meanwhile I could reinstall gcc-4.4.4 which was the biggest corner (hopefully). Thanks, Helmut.