From owner-freebsd-hackers Sat Jul 21 13:56:31 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id A658637B401 for ; Sat, 21 Jul 2001 13:56:25 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.11.3/8.11.3) with ESMTP id f6LKuOJ146848 for ; Sat, 21 Jul 2001 16:56:25 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20010720210609.A53370@dragon.nuxi.com> References: <20010720183229.A9022@freebie.xs4all.nl> <20010720210609.A53370@dragon.nuxi.com> Date: Sat, 21 Jul 2001 16:56:22 -0400 To: freebsd-hackers@FreeBSD.ORG From: Garance A Drosihn Subject: Re: dual booting -stable & -current Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 9:06 PM -0700 7/20/01, David O'Brien wrote: >The way to do this, is first install -stable. >[...] > >Now install -current in the normal way. >[...] > >You might be able to optimize the number of times booting from >CDROM to change the partition type of ad0s1. It occurs to me that it is actually pretty simple to have two freebsd installs on i386, in two separate slices. The thing a person needs to keep in mind is that at the time of any given attempt to install freebsd, they need to be installing freebsd into the lowest-numbered slice of type freebsd. So let's say you want to set up a disk with just two slices, and some snapshot of freebsd in both slices. For the First install: In the fdisk step, create two dos-style slices. Make slice 0 be of type 'dos', and slice 1 of type freebsd. The disklabel step will ignore slice 0. Create freebsd partitions in slice 1. Finish your complete install. For the second install: in the fdisk step, delete slice 0, and create a new slice 0 which is of type freebsd. the disklabel step will see both slices of type freebsd, and you want to create new freebsd partitions in slice 0. You might want to add mount points for the already-existing partitions in slice 1 (if you want those partitions to be mounted when running this snapshot of freebsd), but do NOT delete them or newfs them! Just set mount points. finish the install. I'm pretty sure that should work fine. The more I think about this strategy, the more I think I'm going to try and rebuild my home machine using it, just to make sure it works the way I think it should. I just need to get back my 4.3-release cd's from the person I lent them to... - - - - - - Things get a little more complicated for the user who wants both freebsd installations to reference partitions in the slice of the alternate freebsd install. If you do want that (as I do), then the best way to get there is probably to FIRST get both the installs done without any cross-references. After both installs are up and running, then go back and fix up /etc/fstab on each install to add the partitions wanted from the alternate installation. -- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message