From owner-freebsd-questions Thu Dec 6 18:48:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from monorchid.lemis.com (monorchid.lemis.com [192.109.197.75]) by hub.freebsd.org (Postfix) with ESMTP id 2CCCE37B419 for ; Thu, 6 Dec 2001 18:48:52 -0800 (PST) Received: by monorchid.lemis.com (Postfix, from userid 1004) id 89E5E786E4; Fri, 7 Dec 2001 13:18:50 +1030 (CST) Date: Fri, 7 Dec 2001 13:18:50 +1030 From: Greg Lehey To: Eugene Panchenko Cc: questions@freebsd.org Subject: Re: More than 6 partitions on one slice? Message-ID: <20011207131850.F57799@monorchid.lemis.com> References: <20011207115622.A57799@monorchid.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF 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 [Format recovered--see http://www.lemis.com/email/email-format.html] Your MUA wraps incorrectly. On Friday, 7 December 2001 at 8:30:58 +0600, Eugene Panchenko wrote: > On Fri, 7 Dec 2001 11:56:22 +1030 > Greg Lehey wrote: >> On Friday, 7 December 2001 at 7:06:01 +0600, Eugene Panchenko wrote: >>> Hi! >>> >>> I've never had a need before, but I thought that there are only >>> a-h partitions, that is, 6 (b and c are not quite legal) of them >>> can be on a slice. Is this true? Is there any way to increase >>> this limit? Thank you for your help! >> >> Well, I have my doubts that you have a need now, but >> firstly you can >> use b if you want, and if that's not enough (which it >> surely is), and > > I'm afraid that I can't use b since it's my swap... OK, but in general this works. >> if you're using a PC, you can create 4 slices in >> Microsoft partitions > > I've already have used up all 4 partitions for QNX, NetBSD, > MSDOS622 (yeah, I admit), and, of course, FreeBSD :) OK, but in general this works. >> and put 7 partitions in each, for a total of 28 partitions. If you >> think even that isn't enough, you can make the whole disk a Vinum >> drive and create as many volumes as you like. > > Hmm... While browsing though the sources I have found that > MAXPARTITIONS=8 is #defined in /usr/include/sys/disk*.h. Can I > change it and not be afraid that it will render my box dead?? > Exactly what steps/precautions should I take to safely change it, > and what programs to I have to recompile afterwards, and what device > nods to create? :) There are a large number of reasons why this won't work. The most obvious one is the question of device nodes: the minor number only has three bits for the partition number, so it wouldn't work. You'd be better off with the Vinum solution. I still have difficulty believing you need this many partitions. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message