Date: Fri, 20 Jul 2001 21:06:09 -0700 From: "David O'Brien" <nobody@NUXI.com> To: Wilko Bulte <wkb@freebie.xs4all.nl> Cc: freebsd-hackers@freebsd.org Subject: Re: dual booting -stable & -current Message-ID: <20010720210609.A53370@dragon.nuxi.com> In-Reply-To: <20010720183229.A9022@freebie.xs4all.nl>; from wkb@freebie.xs4all.nl on Fri, Jul 20, 2001 at 06:32:29PM %2B0200 References: <20010720183229.A9022@freebie.xs4all.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010720210609.A53370>