From owner-freebsd-hackers Mon Jun 12 12:24:50 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from auemlsrv.firewall.lucent.com (auemail1.lucent.com [192.11.223.161]) by hub.freebsd.org (Postfix) with ESMTP id 7D0F137B928 for ; Mon, 12 Jun 2000 12:24:47 -0700 (PDT) (envelope-from gcorcoran@lucent.com) Received: from auemlsrv.firewall.lucent.com (localhost [127.0.0.1]) by auemlsrv.firewall.lucent.com (Pro-8.9.3/8.9.3) with ESMTP id PAA02866 for ; Mon, 12 Jun 2000 15:24:40 -0400 (EDT) Received: from mhmail.mh.lucent.com (h135-3-115-8.lucent.com [135.3.115.8]) by auemlsrv.firewall.lucent.com (Pro-8.9.3/8.9.3) with ESMTP id PAA02853; Mon, 12 Jun 2000 15:24:39 -0400 (EDT) Received: from lucent.com by mhmail.mh.lucent.com (8.8.8+Sun/EMS-1.5 sol2) id PAA24565; Mon, 12 Jun 2000 15:24:38 -0400 (EDT) Message-ID: <39453A78.565BDECC@lucent.com> Date: Mon, 12 Jun 2000 15:31:04 -0400 From: "Gary T. Corcoran" Organization: Lucent Microelectronics - Client Access Broadband Systems X-Mailer: Mozilla 4.72 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "Jordan K. Hubbard" Cc: hackers@FreeBSD.ORG Subject: Re: Way off-topic, but anybody know how to resurrect files from FAT-12? References: <200006121452.HAA74024@zippy.cdrom.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Jordan K. Hubbard" wrote: > > I'm sitting here in Seoul, Korea (which is very nice, by the way) and > I've just managed to delete all 82 images of Kyoto off the FAT-12 format > Smartcard they were on. Waaaah! > Way back in the Dark Ages I used to hack on FAT-12 code... Going *way* back in the archives - (had to find a 5-1/4 inch floppy drive!) it looks as if there are directory entry attributes at the byte at dirptr+11, and the lower bits (ANDed with 0x1C) should be 0. Otherwise, if I recall (don't have reference books here), there is a bit saying the file is deleted (other bits say subdirectory, system file, etc.) So you may just have to change that one byte (per file) to recover them (in addition to changing the first byte of the file name which you already did). Hope this helps... (otherwise find a copy of Norton Disk Doctor... :) Gary -- ========================================================= Gary Corcoran - Distinguished Member of Technical Staff Lucent Microelectronics - Client Access Broadband Systems Communications Protocol & Driver Development Group "We make the drivers that make communications work" Email: gcorcoran@lucent.com --------------------------------------------------------- There are only two kinds of machines - those that fail little by little, and those that fail all at once. ========================================================= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message