From owner-freebsd-hackers Thu Jul 15 19: 7:36 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from fusion.qse.tohoku.ac.jp (saturn.qse.tohoku.ac.jp [130.34.70.56]) by hub.freebsd.org (Postfix) with ESMTP id AA93715648 for ; Thu, 15 Jul 1999 19:07:12 -0700 (PDT) (envelope-from kueda@jupiter.qse.tohoku.ac.jp) Received: from localhost (localhost [127.0.0.1]) by fusion.qse.tohoku.ac.jp (8.9.3/8.9.3) with ESMTP id WAA03167; Sun, 11 Jul 1999 22:26:40 +0900 (JST) (envelope-from kueda@jupiter.qse.tohoku.ac.jp) To: joe@pavilion.net, niall@pobox.com Cc: hackers@FreeBSD.ORG Subject: re: HELP!! Slice info disappeared From: Kazukiyo UEDA In-Reply-To: Your message of "Fri, 9 Jul 1999 10:01:16 +0100" <19990709100116.G50525@pavilion.net> References: <19990709100116.G50525@pavilion.net> X-Mailer: Mew version 1.93 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) X-fingerprint: 8F 5E EB B1 89 A9 83 A0 CF 6B 62 13 DE 02 F5 DA X-URL: http://jupiter.qse.tohoku.ac.jp/security/pgp/kueda.pgp Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19990711222640R.kueda@jupiter.qse.tohoku.ac.jp> Date: Sun, 11 Jul 1999 22:26:40 +0900 X-Dispatcher: imput version 980905(IM100) Lines: 44 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello Niall and Josef, Thanks for your great help. Finally I get all data on the disk back after the struggle on the weekend :) I run the program you sent me, but I got nothing from it. I guess the reason as follows: (1) The program fetches each chunks of 16 blocks from the disk and check if they are superblocks. (2) My disk is sliced into 3 parts. The fist one is for MS-DOS (FAT format), and the rest of them are FFS. It's highly possible that the offset block of the beginning of FFS slice is not a multiple of 16. (3) So I did: # for i in 0 1 2 3 ... 15; do # ./findsb /dev/wd2 $[ (estimated end of block for FAT slice)*512 + $i*512 ] # done After I got the info from the superblocks, getting back data was easy. Again, thanks much for your great help. You saved a lot of my time to reconstruct the data from scratch. Sincerely yours, -- Kazukiyo Ueda From: Josef Karthauser Subject: re: HELP!! Slice info disappeared Date: Fri, 9 Jul 1999 10:01:16 +0100 > Hi Kazukiyo, > > This is certainly possible. I've enclosed a hack from Niall Smart that should > generated enough information to for you to reconstruct it. I'm working on a > general solution to this for inclusion FreeBSD as shipped, but it's at home > and I'm at work, that said it's Niall's basic code saved my harddisk a few weeks > ago :) > > Joe > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message