From owner-freebsd-questions Wed Dec 19 17:58:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from crotchety.newsbastards.org (pop-mu-8-1-dialup-205.freesurf.ch [194.230.140.205]) by hub.freebsd.org (Postfix) with ESMTP id 4B13937B419 for ; Wed, 19 Dec 2001 17:57:31 -0800 (PST) Received: (from news@localhost) by crotchety.newsbastards.org (8.11.6/8.11.6) id fBK1A5q00344; Thu, 20 Dec 2001 02:10:05 +0100 (CET) (envelope-from bounce@dcf77-zeit.netscum.dyndns.dk) Date: Thu, 20 Dec 2001 02:10:05 +0100 (CET) Message-Id: <200112200110.fBK1A5q00344@crotchety.newsbastards.org> X-Authentication-Warning: crotchety.newsbastards.org: news set sender to bounce@dcf77-zeit.netscum.dyndns.dk using -f From: BOUWSMA Beery To: questions@freebsd.org Subject: MAXPARTITIONS=16 Organization: Men not wearing any pants that dont shave X-Hacked: via telnet to your port 25, what else? X-Internet-Access-Provided-By: TDC Suisse AG, Rumlang X-NetScum: Yes X-One-And-Only-Real-True-Fluffy: No Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [replies sent directly to me may timeout and bounce, since I'm not online as often as I should be, but I'll check the list archives] Yo How dangerous is it for me to redefine MAXPARTITIONS in src/sys/sys/disklabel.h (and diskslice.h in -stable) from 8 up to 16? NetBSD (disk type A9/169, ufs) now allows one to have up to 16 partitions in one of their DOS-partition slices, which I found useful in allowing me to view my FreeBSD partitions while running NetBSD which otherwise only sees its own (/dev/sd0a through sd0h, now through /dev/sd0p) on my multi-OS disk, by editing the additional disklabel partitions to point outside the NetBSD partition at the FreeBSD partitions (partitions, slices, whatever) FreeBSD already complains a bit about the NetBSD chunk, as it has a `d' partition covering the whole disk, plus the usual `c' partition confined as in FreeBSD to that slice. The FreeBSD kernel discards the `d' partition because it's outside of the `c' boundaries, and the same happens for the additional partitions I've added that point outside of NetBSD's `c', leaving me with just the NetBSD partitions to mount. I never use more than the traditional /dev/da0s3a through da0s3h, except within NetBSD which handles it fine. Well, I've done this with both -current and -stable, and it doesn't seem like either of them are crashing any more than usual. `disklabel' has to be rebuilt (before, the -r option worked while the ioctl failed), but in stable, mount_mfs seems hosed by my change. I'm not creating any new partitions or anything, just working with existing disks, the NetBSD part of which FreeBSD otherwise can't mount. Have I done a Bad Thing, a Really Bad Thing, an Awful Thing, or a Terrible Thing? Did I void my warranty? thanks barry bouwsma To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message