From owner-freebsd-questions@FreeBSD.ORG Sat Aug 21 14:43:48 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 7F19C1065673 for ; Sat, 21 Aug 2010 14:43:48 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from asmtp1.iomartmail.com (asmtp1.iomartmail.com [62.128.201.248]) by mx1.freebsd.org (Postfix) with ESMTP id 14A4D8FC17 for ; Sat, 21 Aug 2010 14:43:47 +0000 (UTC) Received: from asmtp1.iomartmail.com (localhost.localdomain [127.0.0.1]) by asmtp1.iomartmail.com (8.13.8/8.13.8) with ESMTP id o7LEhkdQ021378; Sat, 21 Aug 2010 15:43:46 +0100 Received: from orange.esperance-linux.co.uk (80-45-152-196.static.dsl.as9105.com [80.45.152.196]) (authenticated bits=0) by asmtp1.iomartmail.com (8.13.8/8.13.8) with ESMTP id o7LEhjTj021374; Sat, 21 Aug 2010 15:43:45 +0100 Received: by orange.esperance-linux.co.uk (Postfix, from userid 1001) id 1911433C3D; Sat, 21 Aug 2010 15:43:45 +0100 (BST) Date: Sat, 21 Aug 2010 15:43:45 +0100 From: Frank Shute To: EforeZZ Message-ID: <20100821144345.GA93633@orange.esperance-linux.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 8.1-RELEASE amd64 X-Organisation: 'shute.org.uk' 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 Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Aug 2010 14:43:48 -0000 On Thu, Aug 19, 2010 at 09:07:51PM +0300, 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.... > > ;-( Your editor doesn't save a backup? E.g: /etc/rc.conf~ I use vim and have it setup to save backups. Even though the backup might not be identical, it's saved my bacon on occasion. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html