Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Mar 2002 14:59:05 +0200
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: -STABLE and -CURRENT on the same drive?
Message-ID:  <20020306125905.GI20782@sunbay.com>
In-Reply-To: <Pine.BSF.4.33.0203061236560.34315-100000@ury.york.ac.uk>
References:  <20020306121827.GE20782@sunbay.com> <Pine.BSF.4.33.0203061236560.34315-100000@ury.york.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 06, 2002 at 12:41:22PM +0000, Gavin Atkinson wrote:
> On Wed, 6 Mar 2002, Ruslan Ermilov wrote:
> > On Wed, Mar 06, 2002 at 12:12:14PM +0000, Gavin Atkinson wrote:
> > >
> > > I have a laptop which I run STABLE on. I would like to be able to develop
> > > code under -CURRENT, and so would like to dual boot the machine. I have a
> > > 2 gig slice which is currently free, barring the 5.0 source. I intend to
> > > have this slice set as the only slice 5.0 accesses, so /, /var and /user
> > > will all be on the same slice.  Wjhat is the best way of building world
> > > and kernel so that everything goes into /5.0 as the root partition?
> > >
> > You should build as usual, then install with DESTDIR=/5.0.
> 
> Tanks for that. I suspected it was DESTDIR, but never tried it over an
> install as during build it seemed to be ignored and compiled to
> /usr/obj/5.0/ . (ie I assumed that it should build things to /5.0/usr/obj.
> The source is located on /5.0/usr/src)
> 
> > > THen,
> > > how do I get the loader to recognise that is where the kernel lives? I
> > > realise there is a kerenl option to tell it where to mount root from, but
> > > am at a loss as to how to load the kerenl from it.
> > >
> > I have it deployed on my box.  /dev/ad0a is my -STABLE partition, and
> > /dev/ad0d is my -CURRENT partition.  At the boot: prompt, if I need to
> > load -CURRENT, I simply type: "ad(0,d)".
> 
> Ah, i'm afraid I've confused slices and partitions. Sorry. ad0s1a is my
> -STABLE root, ad0s1e is my /5.0 partition. Is it possible to do this, or
> will I need to repartition? I believe the ad0s1e partition is within the
> 1024 cylinders requirement.
> 
There's no such "requirement" if disk is in LBA mode.  Also, IIRC, despite
the documented "bios_drive:interface(unit,part) filename [-aCcDdghPprsv]"
(in boot(8) manpage) syntax, the actual boot blocks code allows one to
specify slice as well: "bios_drive:interface(unit[,slice],part) ...".


Cheers,
-- 
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020306125905.GI20782>