bsdlabel offset

Tektonaut tektonaut at
Fri Mar 14 11:00:53 UTC 2008


following bsdllabel output caught my attention:

#        size    offset    fstype   [fsize bsize bps/cpg]
  a:  2097152         0    4.2BSD     2048 16384 28552 
  b:  4194304   2097152      swap                    
  c: 312576642        0    unused        0     0         # "raw" part, don't edit
  d: 33554432   6291456    4.2BSD     2048 16384 28552 

I created this disk with sade or sysinstall. What I'm not sure
about is that partition 'a' has an offset of 0. With an 8k big
/boot/boot I would guess offset should be 16block large.

But since the disk is booting, some boot1 loader ist located at
sector 0 (from the beginning of this slice). How is it assured,
that the first block will never be overwritten? Where is boot1
located, where boot2?

Comparing the first sector with boot and boot1 differs already
at the first char. (and there were no updates so far)

Little bemused regards,


More information about the freebsd-questions mailing list