From owner-freebsd-questions@FreeBSD.ORG Thu Aug 19 18:13:22 2010 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 B32FE1065698 for ; Thu, 19 Aug 2010 18:13:22 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5CBC88FC08 for ; Thu, 19 Aug 2010 18:13:22 +0000 (UTC) Received: by qyk4 with SMTP id 4so2403332qyk.13 for ; Thu, 19 Aug 2010 11:13:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=CR/CCKMXJIh0nZm6GSHpXPUNQqdgFnERNj3oIiV+mHw=; b=iAsRRIUSsPacnmiLs6DteUpNRSXZO/aCIyJVSC+m3ev2fs7StoKWAHs2slqLcb6qB6 vURA6uV8VnT9N2WCuzLoBQoCdydz04yUOVxDZeMeg3E2W6ngHcAGlwkQMoKkhiJdOUhY CHjG1xInyEh/piMHvTqEZIrEURtcnwzUJzsTA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=aSNJ/T4wOtRV+OvdOEvaSQSsf6LwF4poQ4ItWRwesO44sUAxFnP/Yyv1M+XDcq5S2K 4bzZJK3b2ZunBPYXFoDYTkmqbckj6JDK9BbW1pEoJWYq4r9tFzqh9fRmxOd/SlKn2JW5 ir2kFVt3z1zxOgbmp/mIOkznf7+11ZSxlRzoc= MIME-Version: 1.0 Received: by 10.229.37.70 with SMTP id w6mr32480qcd.193.1282241601428; Thu, 19 Aug 2010 11:13:21 -0700 (PDT) Received: by 10.229.75.76 with HTTP; Thu, 19 Aug 2010 11:13:21 -0700 (PDT) In-Reply-To: References: Date: Thu, 19 Aug 2010 13:13:21 -0500 Message-ID: From: Adam Vande More To: EforeZZ Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions Subject: Re: How to restore a text file from UFS?? 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: Thu, 19 Aug 2010 18:13:22 -0000 On Thu, Aug 19, 2010 at 1:07 PM, EforeZZ wrote: > I edited my 50Kb /etc/rc.conf, loaded a driver and.... got a kernel panic!! > After reboot my /etc/rc.conf is 0 bytes (after automatic background fsck). > Which tool should I try now to restore any version of my rc.conf?.. > I think data should still be somewhere on the disk.... > You should restore from backup, not an option if you use the "Do Nothing" strategy. http://www.freebsd.org/doc/en/books/handbook/backup-basics.html -- Adam Vande More