From owner-freebsd-questions@FreeBSD.ORG Sun Nov 17 15:36:42 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2C38CAC0 for ; Sun, 17 Nov 2013 15:36:42 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E5E7823A4 for ; Sun, 17 Nov 2013 15:36:41 +0000 (UTC) Received: from r56.edvax.de (port-92-195-117-74.dynamic.qsc.de [92.195.117.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id C989F2537D; Sun, 17 Nov 2013 16:36:33 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id rAHFaKQl004382; Sun, 17 Nov 2013 16:36:20 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 17 Nov 2013 16:36:20 +0100 From: Polytropon To: saeedeh motlagh Subject: Re: how install two freebsd9.2 on one disk? Message-Id: <20131117163620.b5e6df59.freebsd@edvax.de> In-Reply-To: References: <20131117185150.3207ab60@X220.ovitrap.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Nov 2013 15:36:42 -0000 On Sun, 17 Nov 2013 16:51:42 +0330, saeedeh motlagh 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. You have been missing the boot blocks. :-) > 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. With the "old" method, it's a simple call of fdisk and boot0cfg. With the "new" method, you need to have a boot partition, for example ada0p1, which is set active and contains the boot code, in your case, the boot manager. Have a look at Warren Block's installation guide and adjust the bootcode command for the boot manager. See the "EXAMPLES" section in the "man gpart" manpage. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...