From owner-freebsd-geom@FreeBSD.ORG Fri Apr 14 11:28:39 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82D3616A402 for ; Fri, 14 Apr 2006 11:28:39 +0000 (UTC) (envelope-from schweikh@schweikhardt.net) Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 233E843D48 for ; Fri, 14 Apr 2006 11:28:38 +0000 (GMT) (envelope-from schweikh@schweikhardt.net) Received: by bremen.shuttle.de (Postfix, from userid 10) id 4D6823B8CF; Fri, 14 Apr 2006 13:28:37 +0200 (CEST) Received: from hal9000.schweikhardt.net (localhost [127.0.0.1]) by hal9000.schweikhardt.net (8.13.6/8.13.6) with ESMTP id k3EBSGx0032335 for ; Fri, 14 Apr 2006 13:28:16 +0200 (CEST) (envelope-from schweikh@hal9000.schweikhardt.net) Received: (from schweikh@localhost) by hal9000.schweikhardt.net (8.13.6/8.13.6/Submit) id k3EBSGIc032334 for freebsd-geom@freebsd.org; Fri, 14 Apr 2006 13:28:16 +0200 (CEST) (envelope-from schweikh) Date: Fri, 14 Apr 2006 13:28:16 +0200 From: Jens Schweikhardt To: freebsd-geom@freebsd.org Message-ID: <20060414112816.GA1588@schweikhardt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 Subject: RFC: Enhance GEOM to mount NetBSD partitions X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2006 11:28:39 -0000 hello, world\n it appears FreeBSD is only able to mount a very limited set of partitions in a slice with sysid = 169 (NetBSD). To be precise, FreeBSD can only mount the a: partition of such a slice, because it's the only partition for which an entry in /dev exists, e.g. I can "mount /dev/ad0s1 /dev". This provides access to the NetBSD root partition (wd0a in NetBSD lingo). Other partitions within that slice, e.g. /home on what NetBSD calls wd0e are inaccessible. We all know NetBSD has a different (and shall we say counterintuitive) philosophy regarding disklabels and partition numbering. I find it slightly ashaming that we can't even mount our brother BSD's UFS1 and UFS2 in general at least on architectures using the canonical MBR format. Is anyone here who has more than two out of {time, interest, ability} to implement a geom provider (is that the correct terminus technicus?) for FreeBSD allowing to mount all partitions in a slice with sysid = 169 (NetBSD)? The difference of a NetBSD disklabel appears to be the number of partitions (16 instead of 8) and the semantics of the c: ("complete slice") and d: ("complete disk") entries on i386. If you guys are swamped with other interesting projects, would anyone be willing to be a mentor for the upcoming Google "Summer of Code"? Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped)