From owner-freebsd-questions Wed Sep 8 11:35:37 1999 Delivered-To: freebsd-questions@freebsd.org Received: from florence.pavilion.net (florence.pavilion.net [194.242.128.25]) by hub.freebsd.org (Postfix) with ESMTP id 6069A154B1; Wed, 8 Sep 1999 11:35:30 -0700 (PDT) (envelope-from joe@florence.pavilion.net) Received: (from joe@localhost) by florence.pavilion.net (8.9.3/8.8.8) id TAA72355; Wed, 8 Sep 1999 19:34:00 +0100 (BST) (envelope-from joe) Date: Wed, 8 Sep 1999 19:34:00 +0100 From: Josef Karthauser To: David Gilbert Cc: freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: Superblock. Message-ID: <19990908193400.C58237@florence.pavilion.net> References: <14294.41194.422190.809990@trooper.velocet.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <14294.41194.422190.809990@trooper.velocet.ca> X-NCC-RegID: uk.pavilion Organisation: Pavilion Internet plc, 24 The Old Steine, Brighton, BN1 1EL, England Phone: +44-845-333-5000 Fax: +44-845-333-5001 Mobile: +44-403-596893 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Sep 08, 1999 at 01:46:18PM -0400, David Gilbert wrote: > So... I lost my partition table. I'm willing to spend a little time > on this. Is there a byte sequence that I might recognise in a > superblock or at the start of a partition? I know this isn't an easy > task, but man 5 fs leads me to believe that I might find: > > #define FS_MAGIC 0x011954 /* the fast filesystem magic number */ > #define FS_OKAY 0x7c269d38 /* superblock checksum */ > > ... but I don't see those bytes. Any hints? > > I'm willing to post a description of a solution for the FAQ if I can > find the filesystems. > > Dave. Search the hackers mailing list for a mail from me, which contains a C program to do the work for you. Joe -- Josef Karthauser FreeBSD: How many times have you booted today? Technical Manager Viagra for your server (http://www.uk.freebsd.org) Pavilion Internet plc. [joe@pavilion.net, joe@uk.freebsd.org, joe@tao.org.uk] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message