From owner-freebsd-hackers Wed Aug 11 9:23:38 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 206E515531; Wed, 11 Aug 1999 09:23:33 -0700 (PDT) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id SAA13015; Wed, 11 Aug 1999 18:23:25 +0200 (CEST) (envelope-from des) To: Josef Karthauser Cc: Dag-Erling Smorgrav , hackers@FreeBSD.ORG, fs@FreeBSD.ORG Subject: Re: Disk label recovery - request for suggestions. References: <19990808185112.A99557@pavilion.net> <19990811171514.X88035@pavilion.net> From: Dag-Erling Smorgrav Date: 11 Aug 1999 18:23:24 +0200 In-Reply-To: Josef Karthauser's message of "Wed, 11 Aug 1999 17:15:14 +0100" Message-ID: Lines: 22 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Josef Karthauser writes: > Ahha - of course. Ok, let me re-phrase the question then. By looking > at the contents of the superblocks on a UFS file system it's possible to > reconstruct a disklabel for a slice. Well, it's possible to reconstruct the label information for *that particular UFS file system*, since if you know the location of the 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. > 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. DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message