From owner-freebsd-questions@FreeBSD.ORG Tue Jan 22 06:16:47 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C5EA16A417 for ; Tue, 22 Jan 2008 06:16:47 +0000 (UTC) (envelope-from rakhesh@rakhesh.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.249]) by mx1.freebsd.org (Postfix) with ESMTP id C75DD13C442 for ; Tue, 22 Jan 2008 06:16:46 +0000 (UTC) (envelope-from rakhesh@rakhesh.com) Received: by an-out-0708.google.com with SMTP id c14so583844anc.13 for ; Mon, 21 Jan 2008 22:16:46 -0800 (PST) Received: by 10.100.165.13 with SMTP id n13mr16693592ane.38.1200982605538; Mon, 21 Jan 2008 22:16:45 -0800 (PST) Received: from smtp.home.rakhesh.com ( [82.178.102.129]) by mx.google.com with ESMTPS id w43sm7443794hsa.9.2008.01.21.22.16.43 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Jan 2008 22:16:44 -0800 (PST) Received: from dogmatix (dogmatix [192.168.17.31]) by smtp.home.rakhesh.com (Postfix) with ESMTP id AB2F711427; Tue, 22 Jan 2008 10:15:25 +0400 (GST) Date: Tue, 22 Jan 2008 10:15:41 +0400 (GST) X-X-Sender: rakhesh@dogmatix.home.rakhesh.com To: Nerius Landys In-Reply-To: <560f92640801212132q14eb068eg993fe73bf0d4755b@mail.gmail.com> Message-ID: <20080122101013.N7173@dogmatix.home.rakhesh.com> References: <365643.31120.qm@web56811.mail.re3.yahoo.com> <560f92640801212132q14eb068eg993fe73bf0d4755b@mail.gmail.com> X-Blog: http://rakhesh.com/ X-Notes: http://rakhesh.net/ MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed From: Rakhesh Sasidharan Cc: freebsd-questions@freebsd.org Subject: Re: how to restore /usr/src 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: Tue, 22 Jan 2008 06:16:47 -0000 Nerius Landys wrote: >> how can i reinstall the original /usr/src If you have the install CD, you can even extract the sources from there. I don't recollect the exact location (am in office, don't have a CD with me) but its in a directory named "src" and has many files in it. These files are split archives of the original /usr/src tree. There's also a shell script called ''install.sh'' which can be run to combine all these files and extract to a specific location. By default the extracted to location is $DESTDIR/usr/src. Since you want to install to /usr/src, set $DESTDIR to /. So in effect, the following commands should extract the sources to /usr/src for you. (I assume you've inserted the FreeBSD and its mounted at some path). # cd /path/on/cd/where/sources/are # DESTDIR=/ ./install.sh all Hope that helps. - Rakhesh http://rakhesh.net/