From owner-freebsd-hackers Fri Jul 20 21: 6:26 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [206.40.252.115]) by hub.freebsd.org (Postfix) with ESMTP id 840E937B408 for ; Fri, 20 Jul 2001 21:06:20 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.3/8.11.1) id f6L469r53456; Fri, 20 Jul 2001 21:06:09 -0700 (PDT) (envelope-from obrien) Date: Fri, 20 Jul 2001 21:06:09 -0700 From: "David O'Brien" To: Wilko Bulte Cc: freebsd-hackers@freebsd.org Subject: Re: dual booting -stable & -current Message-ID: <20010720210609.A53370@dragon.nuxi.com> Reply-To: freebsd-hackers@freebsd.org References: <20010720183229.A9022@freebie.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010720183229.A9022@freebie.xs4all.nl>; from wkb@freebie.xs4all.nl on Fri, Jul 20, 2001 at 06:32:29PM +0200 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 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 On Fri, Jul 20, 2001 at 06:32:29PM +0200, Wilko Bulte wrote: > I'm probably completely dim today so please bear with me :/ > Thing is I want to setup a dual-boot box, running -stable & -current. > This box, a P2/266 has a 30G IDE disk. > > What I did is create > ad0s1 -> 256MB -> holds root for -stable > ad0s2 -> 256MB -> was supposed to hold root for -current > ad0s3 -> roughly 14G holds tmp,var,usr,usr/obj for -stable > ad0s4 -> ditto for -current You are getting bit by the "root" aliasing code (IIRC this is the right way to describe the problem). This makes it impossible to install multiple copies of FreeBSD on a single disk w/o hacking around the system. :-( The way to do this, is 1st install -stable. Create all four slices in the disk slice editor. In the label editor, do your normal thing, but don't bother doing anything with ad0s2. Continue with install as usual. Boot again from CDROM or floppies and enter the slice editor. Change the partition type of ad0s1 from 165 (FreeBSD FFS) to something else. Write this change to disk and exit from sysinstall. Now install -current in the normal way. When you enter the slice editor you will see that all is as you want it. Make sure you choose easyboot vs. leaving the MBR alone or choosing "standard". You should now be able to create your -current root on ad0s2 and mount the partitions on ad0s3 and ad0s4 (change flag to not newfs them of course). Continue install as usual. Reboot using CDROM or floppies, enter slice editor and set the partition type of ad0s1 back to "165". Write changes, exit, reboot and do your F1 / F2 choice from booteasy. You might be able to optimize the number of times booting from CDROM to change the partition type of ad0s1. -- -- David (obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message