2015-10-07 1:07 GMT+08:00 Theo de Raadt <dera...@cvs.openbsd.org>:

> > > Have I (and some others) misunderstood anything about how BSD
> disklabelling
> > > works?
> >
> > the disklabel is the second sector of the openbsd part of the disk.
> >
> > *3: A6      0   1   2 - 243200 254  63 [          64:  3907024001 ]
> OpenBSD
> >
> > so, if you overwrite sector 65, you will overwrite disklabel. normally
> the 'a'
> > partition overlaps the disklabel, but you made 'e' first.
>
> The ffs and swap code knows not to touch the first 8K of the disk, for
> historic reasons, and this has saved many a butt.  I suspect softraid
> also does this.
>
> But your fingers don't know it.
>
>
Right, time for fingers to learn.

Will look forward to learn how it "saved many a butt" and what's the lowest
"safe" offset (..64 + 8*2 = 81+?..) (if that will actually make sense when
understanding the whole thing) through the Q:s in my last post?


Very interesting; thanks!

Reply via email to