Date: Sun, 13 Oct 2002 19:21:41 +0200 From: Jens Schweikhardt <schweikh@schweikhardt.net> To: Poul-Henning Kamp <phk@critter.freebsd.dk> Cc: current@FreeBSD.ORG Subject: Re: GEOM and NetBSD partitions/disklabels Message-ID: <20021013172141.GA76272@schweikhardt.net> In-Reply-To: <6071.1034522411@critter.freebsd.dk> References: <20021013151535.GA66616@schweikhardt.net> <6071.1034522411@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Oct 13, 2002 at 05:20:11PM +0200, Poul-Henning Kamp wrote: # In message <20021013151535.GA66616@schweikhardt.net>, Jens Schweikhardt writes: # >Poul-Henning et al, # > # >recently I've tried installing NetBSD on a new disk. I'm not sure if the # >following is a coincidence (because it never worked before, even without # >GEOM) or is due to GEOM issues. My -current is from Oct 12 and the kernel # >derived from GENERIC, plus/minus devices/options to match my hardware. # > # >NetBSD uses sysid 169 for their slice and a new style disklabel with 16 # >partitions. FreeBSD is unable to deal with that disklabel, it seems. # # We never had to ability to do this before. GEOM can probably do it for # you, with something like this patch: [snip] Thanks for the quick answer. As-is, the compile fails with In file included from /src/current/sys/geom/geom_bsd.c:62: /src/current/sys/sys/disklabel.h:174: size of array `__assert174' is negative *** Error code 1 because of the compile time assert in disklabel.h, #ifdef CTASSERT CTASSERT(sizeof(struct disklabel) == 276); #endif Another question before I adjust this to make it work: how will this interact with devfs? My ultimate goal is to mount NetBSD partitions on FreeBSD, e.g. /dev/da4s2[ae-p] (preferably read-write). There is more work needed in a bunch of other files, right? If yes, could this be a candidate for the JKH list? Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021013172141.GA76272>