From owner-freebsd-questions@FreeBSD.ORG Tue Oct 21 13:31:48 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87B48106566B for ; Tue, 21 Oct 2008 13:31:48 +0000 (UTC) (envelope-from talon@lpthe.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id 1EEE88FC20 for ; Tue, 21 Oct 2008 13:31:47 +0000 (UTC) (envelope-from talon@lpthe.jussieu.fr) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1]) by shiva.jussieu.fr (8.14.3/jtpda-5.4) with ESMTP id m9LDV8Od096166 for ; Tue, 21 Oct 2008 15:31:25 +0200 (CEST) X-Ids: 168 Received: from niobe.lpthe.jussieu.fr (niobe.lpthe.jussieu.fr [134.157.10.41]) by parthe.lpthe.jussieu.fr (Postfix) with ESMTP id B352189BE6 for ; Tue, 21 Oct 2008 15:31:07 +0200 (CEST) Received: by niobe.lpthe.jussieu.fr (Postfix, from userid 2005) id A859910A; Tue, 21 Oct 2008 15:31:07 +0200 (CEST) Date: Tue, 21 Oct 2008 15:31:07 +0200 From: Michel Talon To: freebsd-questions@freebsd.org Message-ID: <20081021133107.GA5722@lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV 0.93.3/8458/Tue Oct 21 10:39:47 2008 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at jchkmail.jussieu.fr with ID 48FDD9AB.003 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 48FDD9AB.003/134.157.10.1/parthe.lpthe.jussieu.fr/parthe.lpthe.jussieu.fr/ X-j-chkmail-Score: MSGID : 48FDD9AB.003 on jchkmail.jussieu.fr : j-chkmail score : . : R=. U=. O=. B=0.034 -> S=0.034 X-j-chkmail-Status: Ham Subject: Re: need help with disklabel, "expected rawoffset 0, found 32" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2008 13:31:48 -0000 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