From owner-freebsd-questions Thu Dec 27 15:11:12 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mta07-svc.ntlworld.com (mta07-svc.ntlworld.com [62.253.162.47]) by hub.freebsd.org (Postfix) with ESMTP id 9055B37B417 for ; Thu, 27 Dec 2001 15:11:08 -0800 (PST) Received: from lungfish.ntlworld.com ([62.253.145.181]) by mta07-svc.ntlworld.com (InterMail vM.4.01.03.23 201-229-121-123-20010418) with ESMTP id <20011227231106.DQFB327.mta07-svc.ntlworld.com@lungfish.ntlworld.com>; Thu, 27 Dec 2001 23:11:06 +0000 Received: from tuatara.goatsucker.org (tuatara.goatsucker.org [192.168.1.6]) by lungfish.ntlworld.com (8.11.3/8.11.3) with ESMTP id fBRNB4n32327; Thu, 27 Dec 2001 23:11:04 GMT (envelope-from scott@tuatara.goatsucker.org) Received: (from scott@localhost) by tuatara.goatsucker.org (8.11.6/8.11.6) id fBRN9Ni53396; Thu, 27 Dec 2001 23:09:23 GMT (envelope-from scott) Date: Thu, 27 Dec 2001 23:09:22 +0000 From: Scott Mitchell To: Paolo Losi Cc: freebsd-questions@FreeBSD.ORG Subject: Re: CURRENT and STABLE on the same HD: any clever recipe? Message-ID: <20011227230922.A90501@localhost> References: <20011227215246.A24756@linux.netline.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011227215246.A24756@linux.netline.it>; from paolo@linux.netline.it on Thu, Dec 27, 2001 at 09:52:46PM +0100 X-Operating-System: FreeBSD 4.4-RELEASE i386 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 On Thu, Dec 27, 2001 at 09:52:46PM +0100, Paolo Losi wrote: > Hello everyone, > I'm trying to put STABLE and CURRENT on the same HD and looking for > a clever way to do that. It would be nice to have 2 distinct slices for > the installation... > Any ideas? > Thanks > Paolo Hi Paolo, I've just done this myself; it turned out to be surprisingly easy in the end. The FreeBSD slices on my disk are laid out like this: ad0s1a = / for STABLE install ad0s1b = swap, shared by both installs ad0s1e = /var for STABLE install ad0s1f = /usr for STABLE install ad0s1g = /tmp & /var/tmp (symlinked together), shared by both installs ad0s2a = / for CURRENT install ad0s2e = /var for CURRENT install ad0s2f = /usr for CURRENT install ad0s2g = /local/0, shared by both installs If I was to add a second disk to this box, it would be mounted on /local/1. /usr/{src,obj,local,ports,X11R6} and /home are symlinked to appropriate directories on the large /local/0 partition -- separate /usr/src and /usr/obj for each install, of course. This partitioning scheme was suggested by Nik Clayton; it keeps everything whose size is pretty much fixed in small dedicated partitions, and everything that will grow over the life of the system on the same big partition -- less chance that you'll run out of space on (say) /home and have to start sylinking things into /usr/local, or whatever. I did the initial install from a 4.4 CD -- set up all the slices and partitions as above, but didn't set mountpoints for the CURRENT-only partitions. Then just to see if it wll worked, did a second 4.4 install on the CURRENT partitions, with the shared stuff mounted appropriately. With BootEasy as the boot manager, I can select which install to use simply by hitting F1 or F2 at boot time. Sysinstall and booteasy all appear to be perfectly happy with this arrangement; the two installs don't interfere with each other at all, as far as I can see. I've upgraded one install to -STABLE and will get the other one up to -CURRENT over the weekend, hopefully. I chose to do this with a local mirror of the CVS repository in /home/ncvs, from which I can checkout and build whatever versions I want... you could also just run two cvsup jobs to update your respective -CURRENT and -STABLE /usr/src directories. It probably doesn't make much difference which method you use, unless you're making extensive local changes that you want to check in to a local repository. Hope that all makes sense; let me know if you need any more details. Cheers, Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott.mitchell@mail.com | 0xAA775B8B | -- Anon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message