From owner-freebsd-questions@FreeBSD.ORG Fri Mar 20 02:29:44 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 DAA4A106566C for ; Fri, 20 Mar 2009 02:29:44 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 6F7D38FC1A for ; Fri, 20 Mar 2009 02:29:44 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-196-37-253.dynamic.qsc.de [92.196.37.253]) by mx02.qsc.de (Postfix) with ESMTP id 08BF419B51D1; Fri, 20 Mar 2009 03:29:42 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n2K2TaR3006106; Fri, 20 Mar 2009 03:29:37 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Fri, 20 Mar 2009 03:29:36 +0100 From: Polytropon To: Fbsd1 Message-Id: <20090320032936.44fd1e41.freebsd@edvax.de> In-Reply-To: <49C2FA05.5070606@a1poweruser.com> References: <494CA9E6.6050501@a1poweruser.com> <20081222025247.9225e612.freebsd@edvax.de> <49C2FA05.5070606@a1poweruser.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: recover data from damaged msdos fat32 partition X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2009 02:29:45 -0000 On Fri, 20 Mar 2009 10:05:57 +0800, Fbsd1 wrote: > I have installed these ports > > autopsy > dd_rescue > ddrescue > fatback > formost > sleuthkit > > If my understanding of reading their documentation is correct, they all > need a empty disk to copy the bad disk sectors to in sequence. > Is this a correct understanding? It is. These tools work in a non-destructive way, this means their (eventually failing) attempts to recover data do not do any damage to the original (defective) disk. The defective disk isn't repaired, that would be too dangerous to try. I would even mention to first make a 1:1 dd copy of the defective FAT partition and using those tools with the copy, not with the original. > msdos fat32 file system has a backup fat table as stated in the docs. Do > any of the sectors rescue programs read the backup fat table? dd_rescue - No, does simply copy the partition 1:1. ddrescue - The same. sleuthkit - Usually work on a lower level. formost - Works on a lower level and extracts data files by magic. autopsy - Offers a "server" for forensic browsing. fatback - Kind of "undelete tool", no. The TSK's tools dls, fls and ils don't seem to offer the option in question. I read about using alternate superblocks, but that refers to the UFS file system and not the 2nd FAT. Maybe it's possible to exactly locate and extract this backup FAT first and then replace the defective FAT with this copy, using tools like dd? > Not interested in the XP system or programs directors. Just want user > data files created by adobe pagemaker. Dont know what the file extension > is for sure or if there are any way to ID the file from internal > content. Best guess I have on file extension is .cv5 Do not have a file > to examen. The recovery utilities that act by magic aren't interested in the file name extension. From the manuals of the programs listed above that mention such a functionality, there's no word about "Adobe Pagemaker". Would it have been generic files (such as JPG files for images, TeX / text files for text), or some kind of ODF archive, it would be much easier. > What are the general steps I need to do to recover data from this msdos > FAT32 disk with corrupted fat table and maybe corrupted data? First, copy the partition: % ddrescue /dev/ad0s2 fat.dd I'm not sure how the msdosfs formatted disk / the FAT partition will show up as device file in FreeBSD. In the result, you can unplug the disk / remove it and only work with the copy. Then, you can start extracting data from it, for example with % mkdir retrieve % foremost -i fat.dd -v -o retrieve -t all The manpage of foremost has some examples, too. The manpage of fatback isn't great, "info fatback" has more details. For TSK, use something like this: % dls -t raw -f fat -v fat.dd I've got no FAT partitions (defective or intact) at hand so I cannot check if this really works as I think it should. :-) -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...