Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Dec 2001 02:10:05 +0100 (CET)
From:      BOUWSMA Beery <freebsd-user@netscum.dyndns.dk>
To:        questions@freebsd.org
Subject:   MAXPARTITIONS=16
Message-ID:  <200112200110.fBK1A5q00344@crotchety.newsbastards.org>

next in thread | raw e-mail | index | archive | help
[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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112200110.fBK1A5q00344>