From owner-freebsd-questions@FreeBSD.ORG Sun Mar 2 15:46:41 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 72DAF84E for ; Sun, 2 Mar 2014 15:46:41 +0000 (UTC) Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E71861C8F for ; Sun, 2 Mar 2014 15:46:40 +0000 (UTC) Received: from slackbox.erewhon.net (a83-162-243-5.adsl.xs4all.nl [83.162.243.5]) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id s22FkWD3065357; Sun, 2 Mar 2014 16:46:32 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id 86FBD12339; Sun, 2 Mar 2014 16:46:32 +0100 (CET) Date: Sun, 2 Mar 2014 16:46:32 +0100 From: Roland Smith To: ajtiM Subject: Re: a big mistake-deleted etc Message-ID: <20140302154632.GA32691@slackbox.erewhon.net> References: <50AC4930-2F20-4CDD-918F-765BBD3A82C5@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zhXaljGHf11kAtnf" Content-Disposition: inline In-Reply-To: <50AC4930-2F20-4CDD-918F-765BBD3A82C5@gmail.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.22 (2013-10-16) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Mar 2014 15:46:41 -0000 --zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 28, 2014 at 12:56:31PM -0500, ajtiM wrote: > Hi! > > I have a big problem. > > I did accidental deleted /etc and I cannot start a system. Is it a way th= at > I get /etc back without lost everything, please? I did mounted disk and > there are no /etc. Uh You can find the default versions of most configuration files in /usr/src/etc/. You can run mergemaster(8) to install them. What you should really do for the future is keep all your configuration fil= es under revision control in a subdirectory of your $HOME, complete with an install script. I wrote up my workflow in 2010. See: http://rsmith.home.xs4all.nl/howto/managing-configuration-files.html Roland --=20 R.F.Smith http://rsmith.home.xs4all.nl/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 5753 3324 1661 B0FE 8D93 FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0) --zhXaljGHf11kAtnf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQIcBAEBAgAGBQJTE1JYAAoJEED21dyjijPg4xMP/iusFvYr2YnK1NoU1LQ5RR4W YSwk/X7uBpsgXsOsLSGp00XEkqliD5qdho7DBdZ8XWJZB53tUIdObUG9dv3Oy5PY nATZX32GcCv5d4C2O/j9TSXjmj/AsE7K/oN/wevjuBTIYh3aeNeGuRRSsDYRok05 Te2CkAKr0FaxuthfbNma2bZKOX6Mr5Z5BfFeAQGkAYWooC1yJj4cyrM2npZC7ieN gE3f3ipiPIquALFVDIDv6LUd38/AUv4t8A3IwXRTXPcnFZ1hRK3JUMvn6l4hctaz JOp1ifMDkDKhi628Hiyj1gnYoPG1q9YFBUpqAjMk6A4q8nl12ooMYVRNFtkvqbBa i8yWBuUnXHac41D1/BHZNuAO8U3rL5LV9TqCYxYxsE1Hk7uz0CcePSSLkQvnjR4I LXidT+yNHI0kfeSt1b5j3AK3WKfsjeZsEKs8FqSLA1o7dZETUlZAphSg0cjy4u6f o8l8eP5tsg9dZfHu3+L1JKPCQ/smmq6zEe6h52kJ5/oMYbW2c2CwrKuLt6WGH+ya jLMD22Ps23SYtPS8DYGnu5eQ1qH53hDkWDTjRbHGknwqNJ9gGiFmTYVHPWThblfn Ob/A4gCrf+5QatpHsgGbnJv3YZonJO1jyqFOUW+pF6yWtnTsQukZz/OJ1Ms1JJOU VdRqwucU9N/BnaaRFomk =YhLn -----END PGP SIGNATURE----- --zhXaljGHf11kAtnf--