From owner-freebsd-current Thu Oct 17 1:26:23 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A8EF37B401 for ; Thu, 17 Oct 2002 01:26:22 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D38243E77 for ; Thu, 17 Oct 2002 01:26:21 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id SAA30897; Thu, 17 Oct 2002 18:26:17 +1000 Date: Thu, 17 Oct 2002 18:36:57 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: walt Cc: freebsd-current@FreeBSD.ORG Subject: Re: GEOM question In-Reply-To: <3DADA392.3000308@hotmail.com> Message-ID: <20021017182323.N9475-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 16 Oct 2002, walt wrote: > Bruce Evans wrote: > > On Wed, 16 Oct 2002, walt wrote: > > > >>Bruce Evans wrote: > >> > >> > >>>Don't use extended partitions directly. It is easy to > >>>make a mess by clobbering the pointers to the logical drive > >>>within them. > > >>I need to ask for clarification on this point. What do you > >>mean by 'directly'? > > > Just write to them using anything that doesn't understand that they > > are containers for logical drives. E.g., newfs would leave their > > Once again you leave me puzzled. 'newfs /dev/ad2s8' is exactly how > I formatted the partition and everything is working perfectly. /dev/ad2s8 isn't an extended partition. It is a logical drive within an extended partition. In FreeBSD, only primary extended partitions are exposed as devices. You probably have a layout something like: ad2s4: extended partition ad2s5: logical drive within ad2s4 [ad2s4X]: nameless extended partition within ad2s4 ad2s6: logical drive within ad2s4X [ad2s4XX]: nameless extended partition within ad2s4X ad2s7: logical drive within ad2s4XX [ad2s4XXX]: nameless extended partition within ad2s4XX ad2s8: logical drive within ad2s4XXX > In addition I see this on -CURRENT (with GEOM): > #disklabel ad2s8 > disklabel: ioctl DIOCGDINFO: Operation not supported by device > > and this on -STABLE (different machine): > # disklabel ad0s7 > disklabel: ioctl DIOCGDINFO: Invalid argument > > so (for me) disklabel does not work on extended/logical partitions. This behaviour is the same as for all slices except the whole disk slice. There is no label on them until you write one. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message