how install two freebsd9.2 on one disk?

Erich Dollansky erich at alogt.com
Sun Nov 17 13:48:39 UTC 2013


Hi,

On Sun, 17 Nov 2013 16:51:42 +0330
saeedeh motlagh <saeedeh.motlagh at gmail.com> wrote:

> thanks guys for your useful reply.
> 
>  thanks Polytropon for your complete answer. it helps me a lot. just i
> don't know how use boot manager yet. i create gpt partitions and
> install 2 freebsd 9.2 on them (ada0p2 is / for the first OS and
> ada0p6 is / for the second one) but after restart, none of them boot.
> should i copy pmbr and gptboot by "gpart bootcode" command on ada0?
> (although i do it and nothing change) if not, where is boot manager
> and how should i use it? i think something should be done about boot
> partition (ada0p1), don't it? please help me to boot my 2 OS
> correctly.
> 
I would suggest to use the installer 'bsdinstall' for this. Use option
'auto' to do a complete installation or the option 'partedit' to do
just the partitioning. It should write also the boot code. Check man
gpart for the name of the boot manager.

Erich


> thanks in advance
> SAM
> 
> 
> On Sun, Nov 17, 2013 at 2:21 PM, Erich Dollansky <erich at alogt.com>
> wrote:
> 
> > Hi,
> >
> > On Sun, 17 Nov 2013 13:51:07 +0330
> > s m <sam.gh1986 at gmail.com> wrote:
> >
> > > hello every one
> > >
> > > for some reason, i want to install two freebsd9.2 OS on one SSD.
> > > is it possible?? i have problem in partitioning my disk for two
> > > OS. you know there is just one ada0 which can be partitioned.
> > > if i define more partitions on ada0, can i use some of them for
> > > the first OS and the others for second one? if yes, how can i
> > > manage booting? how and where should i install boot manager in
> > > order to manage them in booting time??
> > >
> > > any comments or hints are appreciated
> >
> > it should be possible. You need two containers for the FreeBSD
> > partitions. To get them, you have to start the installer and add
> > partitions manually. Select your installation disk, i.e. ada0. If
> > it is not empty, delete what is there and add the first container
> > (slice) do it using 50% of the disk. Add then inside this slice
> > (ada0s1) the partitions you want. When you start the second
> > installation, use the remaining space. This will result in a second
> > slice (ada0s2) if I remember right.
> >
> > You will need a boot manager. I did not see the question to use one
> > in the installer recently.
> >
> > Erich
> > _______________________________________________
> > freebsd-questions at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "
> > freebsd-questions-unsubscribe at freebsd.org"
> >
> 
> 
> 



More information about the freebsd-questions mailing list