From owner-freebsd-questions@FreeBSD.ORG Sat Mar 1 11:06:20 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 46D182AC for ; Sat, 1 Mar 2014 11:06:20 +0000 (UTC) Received: from mail-yh0-x235.google.com (mail-yh0-x235.google.com [IPv6:2607:f8b0:4002:c01::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 071071CC1 for ; Sat, 1 Mar 2014 11:06:19 +0000 (UTC) Received: by mail-yh0-f53.google.com with SMTP id v1so1889271yhn.40 for ; Sat, 01 Mar 2014 03:06:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=9ovxlokinkNa2NNd7C7viCeE7uKhXs3F9bcJSv+94zc=; b=gxZ2q2DzuKjFQ+kXxx+IDmzsHzxhct9KnZB5SN4nt2tdQi4q6Iypaz+P7sZGZa/SBL MflVU9eNRJsJE3nZtpQJ1P605sM1wCeIS65uS6yJsRcMhY96SL5SyGa8FnXbEpT1sfEa cJa27iGPIjQGeID7KuwMT1PsMjtcnOZzQ2JDdb/+Dk+9yv8hkdy13jnKg438jhY1YLi3 ZSeuM+X20hbfXVrh6/nJ44cqwXzw0/ZnMJ+sLT365hmxCPydlHm0vBPBm6ABV/h3zprb ECkhQnjxEjlbgouY3VREJo5hguap8XSkdByQ3lDZVVqFjiCTRKTDr5Bqlzd7yP3iDWSZ jZLg== X-Received: by 10.236.231.101 with SMTP id k95mr9183568yhq.34.1393671979126; Sat, 01 Mar 2014 03:06:19 -0800 (PST) Received: from [192.168.2.254] (pool-72-73-114-74.ptldme.east.myfairpoint.net. [72.73.114.74]) by mx.google.com with ESMTPSA id q9sm15478562yhk.16.2014.03.01.03.06.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 01 Mar 2014 03:06:18 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: a big mistake-deleted etc From: ajtiM In-Reply-To: <20140301041416.015b5929.freebsd@edvax.de> Date: Sat, 1 Mar 2014 06:06:17 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <83AFB9BA-0AA8-4E4A-B2EF-08A3F2061D81@gmail.com> References: <50AC4930-2F20-4CDD-918F-765BBD3A82C5@gmail.com> <20140301041416.015b5929.freebsd@edvax.de> To: Polytropon X-Mailer: Apple Mail (2.1510) 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: Sat, 01 Mar 2014 11:06:20 -0000 The problem is because I cannot boot in single mode. I use mountroot>ufs:/dev/my disk and it mounted read only If I boot Live CD and run: mount -t ufs -o rw /dev/my disk it cannot find it. If I use mountroot>ufs:/dev/my disk o rw=20 than I got error 22. Thank you. On Feb 28, 2014, at 10:14 PM, Polytropon wrote: > On Fri, 28 Feb 2014 12:56:31 -0500, ajtiM wrote: >> Hi! >>=20 >> I have a big problem. >> I did accidental deleted /etc=85 and I cannot start a system. >> Is it a way that I get /etc back without lost everything, please?=20 >=20 > Usually not. Files deleted from UFS are typically gone. > You can try to use a tool like photorec (install the > "testdisk" port) to try to get the _data_ back, but > the file names will be lost. >=20 > Another option is to boot from a USB or CD live system > and to to /usr/src/etc and run "make install". This > should install the required files into /etc, but you'll > have to manually adjust some of them, most importantly > the /etc/fstab file, but also probably the passwd user > databases (both text and binary). >=20 > If you're like me, you could have a CVS repository with > your changes to /etc where you can checkout the lasted > versions of modified files. :-) >=20 >=20 >=20 >=20 >=20 >=20 > --=20 > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... Mitja ---- http://www.redbubble.com/people/lumiwa