From owner-freebsd-hackers Mon Jun 12 7:52:48 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from zippy.cdrom.com (zippy.cdrom.com [204.216.27.228]) by hub.freebsd.org (Postfix) with ESMTP id 9E77F37B57B for ; Mon, 12 Jun 2000 07:52:46 -0700 (PDT) (envelope-from jkh@zippy.cdrom.com) Received: (from jkh@localhost) by zippy.cdrom.com (8.9.3/8.9.3) id HAA74024 for hackers@freebsd.org; Mon, 12 Jun 2000 07:52:04 -0700 (PDT) (envelope-from jkh) Date: Mon, 12 Jun 2000 07:52:04 -0700 (PDT) From: "Jordan K. Hubbard" Message-Id: <200006121452.HAA74024@zippy.cdrom.com> To: hackers@freebsd.org Subject: Way off-topic, but anybody know how to resurrect files from FAT-12? Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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! Well, that is to say that I mv'd them off from FreeBSD (and I hope our MSDOSFS code doesn't do anything really weird there) and then proceeded to fat-finger a command in the shell which deleted them off my UFS filesystem. Once I noticed that fsdb seems to be read-only no matter what you do with it these days, and not really knowing how to use it to resurrect deleted directory slots, I resolved to go back to the original smartcard (which I've saved an image of, my brain having returned from the dark, musty place it must have been when I thought to do image reshuffling while tired). I notice with od -c that it's FAT-12 and first thought to simply edit the first byte of each filename back to what it was, since it being mangled was the first thing I noticed in "beav". That resulted in the filenames being viewable again, but I still can't copy the files since that returns EFAULT. Clearly there's something else I'm missing here when it comes to resurrecting deleted files off a DOS FS, and Win98 doesn't appear to have an "undelete" (I looked) so I'm really at a loss. I'd buy a copy of Norton or something at this point, but I wouldn't even know where to find such a thing in Korea. Any suggestions? They were some really nice pictures and I hate the idea of losing them. :-( Thanks! I've certainly learned my lesson for at least another year or two.... - Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message