Subject: Re: mkfs should clear possible alternate superblocks
To: David Laight <david@l8s.co.uk>
From: Neil Booth <neil@daikokuya.co.uk>
List: tech-userlevel
Date: 09/10/2003 21:50:10
David Laight wrote:-

> At the moment newfs only writes the part of the disk that contains
> the red tape for the new filesystem.  Unfortunately this doesn't
> guarantee that it will overwrite the red tape from an older filesystem.
> 
> In particular it is important that the old superblock and the first
> alternate (which is in one of a few 'well known' locations is invalidated.
> Failure to do so can lead the the wrong fsck being run, or the wrong
> filesystem type being mounted.
>
[...]
> 
> The change below ensures that the magic number is removed from likely
> places.

Does this solve the issue I reported a month ago, where I installed
NetBSD over a previously NetBSD-raided drive, and the initial boot
after installation got very confused because it thought the filesystem
was still raided?

If so, thanks!

Neil.