From owner-freebsd-questions@FreeBSD.ORG Tue Sep 22 10:09:10 2009 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 3D6F2106566C for ; Tue, 22 Sep 2009 10:09:10 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id 155CC8FC14 for ; Tue, 22 Sep 2009 10:09:10 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Mq2J3-0000ko-Gu for freebsd-questions@freebsd.org; Tue, 22 Sep 2009 03:09:09 -0700 Message-ID: <25530662.post@talk.nabble.com> Date: Tue, 22 Sep 2009 03:09:09 -0700 (PDT) From: jaymax To: freebsd-questions@freebsd.org In-Reply-To: <20090919084324.GB51231@slackbox.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jaymax36@gmail.com References: <25498179.post@talk.nabble.com> <20090918052422.GA8637@slackbox.xs4all.nl> <25518685.post@talk.nabble.com> <20090919084324.GB51231@slackbox.xs4all.nl> Subject: Re: Undelete or recover from badblocks on disks 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 Sep 2009 10:09:10 -0000 Thanks again Roland, I think I must have lost those files when fsck_ffs did its salvage operation The expected files were /disk02/bkup/dump/ad0s1a-090909.dump /disk02/bkup/dump/ad0s1e-090909.dump /disk02/bkup/dump/ad0s1f-090909.dump fls from the image file => listfile # sed -n 30153,30158p list d/d 4804608: bkup d/d 918528: servers + d/d 918529: apache ++ d/d 918530: httpd-2.0.40 +++ d/d 918531: os ++++ d/d 918532: os2 Shows the bkup directory but no subdirectory (i.e ../dump/. or dumpfiles Now, if perchance these files were found with fls what would have been the method to extract them back and make them readable to the file system. Thanks _________________ Roland Smith wrote: > > On Fri, Sep 18, 2009 at 10:17:31PM -0700, jaymax wrote: >> >> Thanks Roland, > > Create a disk image from the damaged drive, and save it on another disk > with enough space. You can use dd(1) to create a disk image. You can > devide the image into several files. For example, I will use dd to get two > consecutive 10 > > # dd if=/dev/da0s1 of=dd1.img bs=1m count=10 > 10+0 records in > 10+0 records out > 10485760 bytes transferred in 1.031497 secs (10165575 bytes/sec) > > The (valid, IMHO) reason for using disk images is that you want to > investigate a copy of the data, so you cannot accidentily destroy the > original data. > -- View this message in context: http://www.nabble.com/Undelete-or-recover-from-badblocks-on-disks-tp25498179p25530662.html Sent from the freebsd-questions mailing list archive at Nabble.com.