need help with disklabel, "expected rawoffset 0, found 32"

Michel Talon talon at lpthe.jussieu.fr
Tue Oct 21 06:31:48 PDT 2008


Per olof Ljungmark wrote:

> I must admit I don't fully understand what is going on here ...

The c partition should cover exactly the slice. For example, my ad0s1
is like that:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 81915372 (39997 Meg), flag 80 (active)
Now let us look at the label on this slice:
lilas# disklabel ad0s1
# /dev/ad0s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  1048576        0    4.2BSD     2048 16384     8 
  b:  4126240  1048576      swap                    
  c: 81915372        0    unused        0     0         # "raw" part,
don't edit
  d:  4159488  5174816    4.2BSD     2048 16384 28552 
  e: 72581068  9334304    4.2BSD     2048 16384 28552 

You can see that the c) partition starts at offset 0 and has exactly the
size 81915372 reported above. In your case you start at offset 63.

Note that the first partition a) should start at offset 16 (see the
"offset" entry in man bsdlabel) but this is not enforced in sysinstall.



-- 

Michel TALON



More information about the freebsd-questions mailing list