Date: Tue, 21 Oct 2008 15:31:07 +0200 From: Michel Talon <talon@lpthe.jussieu.fr> To: freebsd-questions@freebsd.org Subject: Re: need help with disklabel, "expected rawoffset 0, found 32" Message-ID: <20081021133107.GA5722@lpthe.jussieu.fr>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081021133107.GA5722>