From owner-freebsd-questions Mon Jan 14 19:11:45 2002 Delivered-To: freebsd-questions@freebsd.org Received: from finch-post-10.mail.demon.net (finch-post-10.mail.demon.net [194.217.242.38]) by hub.freebsd.org (Postfix) with ESMTP id B4ECC37B417; Mon, 14 Jan 2002 19:11:22 -0800 (PST) Received: from ubik.demon.co.uk ([194.222.125.229]) by finch-post-10.mail.demon.net with esmtp (Exim 2.12 #1) id 16QK0O-000ECj-0A; Tue, 15 Jan 2002 03:11:21 +0000 Message-ID: <8QXoGOAiu5Q8IwGS@ubik.demon.co.uk> Date: Tue, 15 Jan 2002 03:01:54 +0000 To: Alex.Wilkinson@dsto.defence.gov.au Cc: hackers@freebsd.org, freebsd-questions@freebsd.org From: Anthony Naggs Subject: Re: Super Block References: <20020115120052.B8750-100000@squirm.dsto.defence.gov.au> In-Reply-To: <20020115120052.B8750-100000@squirm.dsto.defence.gov.au> MIME-Version: 1.0 X-Mailer: Turnpike Integrated Version 5.01 U Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [Emailed to questioner, cc'd to FreeBSD lists only] In article <20020115120052.B8750-100000@squirm.dsto.defence.gov.au>, Wilkinson,Alex writes >Howdy Crew, > >I am wanting to find out the significance of the Super Block, whether FreeBSD, >Linux, Solaris... >whatever. > >I know: > >* The Super Block contains critical data for the device's filesystem [but what >??]. >* It is located on sectors 16 through 31 at the beggining of the device. I think these vary with the file system. >* FreeBSD keeps an alternate SuperBlock at the begging of every cylinder group. >* The first alternate Super block on FBSD is at block 32. > >This is all the info I could scrounge up. > >What does the SuperBlock actually do ? >Why is the SuperBlock so critical ? When the file system driver starts it reads the SuperBlock to confirm that the driver can recognise the disk. E.g. checking for "magic numbers". The SuperBlock contains information on the disk area allocated to the partition, free/used blocks, where to find the root directory, block size, inode size, etc... It also indicates whether the disk has been modified, which can force fsck to run, this is cleared when the volume is unmounted. It is hard to say much more without knowing more about your interest in it. Cheers, Tony To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message