From owner-freebsd-questions@FreeBSD.ORG Mon Jan 10 17:31:04 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E40191065672 for ; Mon, 10 Jan 2011 17:31:04 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id A568C8FC20 for ; Mon, 10 Jan 2011 17:31:04 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.4/8.14.4) with ESMTP id p0AHV30U079838; Mon, 10 Jan 2011 10:31:03 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.4/8.14.4/Submit) with ESMTP id p0AHV3cn079835; Mon, 10 Jan 2011 10:31:03 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 10 Jan 2011 10:31:03 -0700 (MST) From: Warren Block To: David Demelier In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (wonkity.com [127.0.0.1]); Mon, 10 Jan 2011 10:31:03 -0700 (MST) Cc: freebsd-questions@freebsd.org Subject: Re: gpart bootcode manually X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2011 17:31:05 -0000 On Mon, 10 Jan 2011, David Demelier wrote: > Because I wanted to crypt a /home partition, I tried to make my partition and > slice using gpart in the fixit environment. > > There is the partition I've made : > > Fixit # gpart show ad0 > => 63 625142385 ad0 MBR (298G) > 63 625142385 1 freebsd [active] (298G) > > Fixit # gpart show ad0s1 > => 0 625142385 ad0s1 BSD (298G) > 0 63 - free - (32K) > 63 1048576 1 freebsd-ufs (512M) > 1048639 4194304 2 freebsd-swap (2.0G) > 5242943 524288 4 freebsd-ufs (256M) > 5767231 524288 5 freebsd-ufs (256M) > 6291519 20971520 6 freebsd-ufs (10G) > 27263039 597879346 7 freebsd-ufs (285G) > > To install the boot1, I tried this : > > gpart bootcode -b /mnt2/boot/boot1 ad2s1 > gpart bootcode -b /mnt2/boot/boot1 ad2 > > But nothing happens, there is not the / spinning, just a blinking underscore. > What did I wrong ? If you didn't do 'sysctl kern.geom.debugflags=16', it should give a warning. But maybe not in that case. I'd think it's a mistake to install bootcode to a slice, but gpart says you can do it provided you use -p and -i.