From owner-freebsd-questions Fri Jan 17 3:44:34 2003 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 E90F437B401 for ; Fri, 17 Jan 2003 03:44:32 -0800 (PST) Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6238E43EB2 for ; Fri, 17 Jan 2003 03:44:32 -0800 (PST) (envelope-from 520023893678-0001@t-online.de) Received: from fwd06.sul.t-online.de by mailout03.sul.t-online.com with smtp id 18ZUvC-0005vI-09; Fri, 17 Jan 2003 12:44:26 +0100 Received: from pD950C7CC.dip.t-dialin.net (520023893678-0001@[217.80.199.204]) by fwd06.sul.t-online.com with esmtp id 18ZUuw-1ljc48C; Fri, 17 Jan 2003 12:44:10 +0100 Date: Fri, 17 Jan 2003 12:43:49 +0000 (GMT) From: 520023893678-0001@t-online.de (P. U. Kruppa) To: Len Conrad Cc: freebsd-questions@FreeBSD.ORG Subject: Re: how to restore /usr In-Reply-To: <5.1.1.6.2.20030117052127.05831908@mail.go2france.com> Message-ID: <20030117123627.O34441@small.pukruppa.de> References: <5.1.1.6.2.20030117052127.05831908@mail.go2france.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Sender: 520023893678-0001@t-dialin.net Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 17 Jan 2003, Len Conrad wrote: > Trying to free up disk space, a user accidentally rm'd /usr instead of > /usr/ports. > > Starting with the cdrom, what is the best way to get the /usr tree back > onto the disk? If your system still can boot, you can do # /stand/sysinstall --> configure --> Distributions and select the things you need. In case you remember config-files you have edited, try to save them from beeing overwritten by changing their names with mv . You can rename them afterwards. For the future: There are quite simple tools to backup and restore the contents of your partitions: dump and restore. Hope that helps, Uli. > > thanks > Len > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > *-----------------------------------* * Peter Ulrich Kruppa * * - Wuppertal - * * Germany * *-----------------------------------* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message