From owner-freebsd-questions@FreeBSD.ORG Tue Jan 29 01:08:25 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BA0824F3 for ; Tue, 29 Jan 2013 01:08:25 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) by mx1.freebsd.org (Postfix) with ESMTP id 77B09B5A for ; Tue, 29 Jan 2013 01:08:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=uWCr2AzK0WYs1OONFIkpE0Kqe/0zyNMr/0t8i3RHqdE=; b=DpjSze6lSqPOW5T8XwndpK9w4t9AESLRz88AgLhnCgFx3l276jhBszzTdiD4OG5bkEws5fcAzHKZGciNy4jSvL0eWlWSSB6HaOLw6wRS7kpGOkOyzqdxZ8VQz1CfsFmW; Received: from [122.129.203.50] (port=48300 helo=X220.ovitrap.com) by sl-508-2.slc.westdc.net with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1TzzgV-002VI2-Sg; Mon, 28 Jan 2013 18:08:24 -0700 Date: Tue, 29 Jan 2013 08:08:19 +0700 From: Erich Dollansky To: Warren Block Subject: Re: creating bootable disk with gpart Message-ID: <20130129080819.6607da61@X220.ovitrap.com> In-Reply-To: References: <20130128184407.70a03e5a@X220.ovitrap.com> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2013 01:08:25 -0000 Hi Warren, On Mon, 28 Jan 2013 08:41:10 -0700 (MST) Warren Block wrote: > On Mon, 28 Jan 2013, Erich Dollansky wrote: > > > Hi, > > > > I followed http://www.wonkity.com/~wblock/docs/html/disksetup.html > > to create bootable disks with GPT. > > > > As you know from my former post, I tried to boot via USB from a GPT > > disk and failed. I inserted the disk into the notebook and bootin > > also failed. > > > > Irony is that inserting the MBR disk into the USB case results also > > in a failure but much later. > > What failure? it is all getting really confusing for me. When I try now your example, it also fails: [X220]/home/erich (root) > gpart destroy -F da0 da0 destroyed [X220]/home/erich (root) > gpart show da0 gpart: No such geom: da0. [X220]/home/erich (root) > gpart create -s mbr da0 da0 created [X220]/home/erich (root) > gpart show da0 => 63 312581745 da0 MBR (149G) 63 312581745 - free - (149G) [X220]/home/erich (root) > gpart bootcode -b /boot/mbr da0 bootcode written to da0 [X220]/home/erich (root) > gpart show da0 => 63 312581745 da0 MBR (149G) 63 312581745 - free - (149G) [X220]/home/erich (root) > gpart add -t freebsd da0 da0s1 added [X220]/home/erich (root) > gpart show da0 => 63 312581745 da0 MBR (149G) 63 312581745 1 freebsd (149G) [X220]/home/erich (root) > gpart set -a active -i 1 da0 active set on da0s1 [X220]/home/erich (root) > gpart show da0 => 63 312581745 da0 MBR (149G) 63 312581745 1 freebsd [active] (149G) [X220]/home/erich (root) > gpart create -s bsd da0s1 gpart: geom 'da0s1': File exists [X220]/home/erich (root) > gpart show da0 => 63 312581745 da0 MBR (149G) 63 312581745 1 freebsd [active] (149G) Of course, there was a da0s1 before on the disk. Shouldn't gpart destroy -F da0 have destroyed it all? Erich