From owner-freebsd-questions Tue Sep 18 14:36:23 2001 Delivered-To: freebsd-questions@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 35C0337B418 for ; Tue, 18 Sep 2001 14:36:18 -0700 (PDT) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 18 Sep 2001 22:36:17 +0100 (BST) To: Aram Khalili Cc: freebsd-questions@freebsd.org Subject: Re: corrupted superblock/fsck problem In-Reply-To: Your message of "Tue, 18 Sep 2001 12:22:25 EDT." Date: Tue, 18 Sep 2001 22:36:16 +0100 From: Ian Dowse Message-ID: <200109182236.aa76960@salmon.maths.tcd.ie> 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 In message , Ara m Khalili writes: > >Yikes, I had assumed it starts at block 0. So what did I clobber? The >boot block? The /home filesystem isn't bootable ... It depends a bit on how the disk is partitioned. If /home was located at the beginning of a slice, then you might have overwritten the disklabel in sector 1 (i.e. the second sector). On a bootable slice, sectors 0 and 2-15 are used by the boot code, and on a "dangerously dedicated" disk, sector 0 also contains the DOS partition table. Another possibility is that you wrote more than 8k to the start of the partition so maybe you did actually clobber the master superblock. >It doesn't include the count of used/free inodes and blocks in the >filesystem (not the bitmap, just the count)? I'm more familiar with ext2, >and I think it does. Yes, there are summary statistics kept in the superblock, but the kernel only ever looks at the master superblock, so it doesn't matter if the backup superblocks are not kept up-to-date. The only thing that reads the backup superblocks is fsck, and it has to know how to recalculate those counts and statistics anyway, since they will be wrong after an unclean shutdown. Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message