From owner-freebsd-fs Wed Aug 11 10:33:39 1999 Delivered-To: freebsd-fs@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id AEA5115776; Wed, 11 Aug 1999 10:33:19 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id LAA20642; Wed, 11 Aug 1999 11:33:05 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id LAA18169; Wed, 11 Aug 1999 11:33:30 -0600 (MDT) Message-Id: <199908111733.LAA18169@harmony.village.org> To: Dag-Erling Smorgrav Subject: Re: Disk label recovery - request for suggestions. Cc: Josef Karthauser , hackers@FreeBSD.ORG, fs@FreeBSD.ORG In-reply-to: Your message of "11 Aug 1999 18:23:24 +0200." References: <19990808185112.A99557@pavilion.net> <19990811171514.X88035@pavilion.net> Date: Wed, 11 Aug 1999 11:33:30 -0600 From: Warner Losh Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message Dag-Erling Smorgrav writes: : superblock (or one of its backup copies), you can determine the offset : and size of the FS. It won't tell you anything about *other* : partitions though. It will give a fairly strong hint, however. If you know what is taken up by this partition, you can remove it from the pool of available space and guess with a relatively high degree of accuracy that the next partition begins where this one ends. : > Is this trick possible with other : > kinds of file systems too? : : That's totally dependent on the particular file system. For instance, : a swap partition contains no metadata (that I know of), so all you can : do is deduce it's size and position from the sizes and positions of : surrounding partitions, and of the slice they're in. Yes. This is true.... That's one of the problems of my disklabel reconstruction program that tries to run fast... It slows way down when it hits the swap area... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message