Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jul 2001 16:56:22 -0400
From:      Garance A Drosihn <drosih@rpi.edu>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: dual booting -stable & -current
Message-ID:  <p05101010b77f9500b507@[128.113.24.47]>
In-Reply-To: <20010720210609.A53370@dragon.nuxi.com>
References:  <20010720183229.A9022@freebie.xs4all.nl> <20010720210609.A53370@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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