From owner-freebsd-geom@FreeBSD.ORG Thu May 27 22:28:00 2010 Return-Path: Delivered-To: geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0652106566B for ; Thu, 27 May 2010 22:28:00 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.221.175]) by mx1.freebsd.org (Postfix) with ESMTP id 78E3E8FC0C for ; Thu, 27 May 2010 22:28:00 +0000 (UTC) Received: by qyk5 with SMTP id 5so800144qyk.3 for ; Thu, 27 May 2010 15:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=B5Lu1zZin5qG57PG5//qtKukjpA+rigULNkCciKciKk=; b=Ver7j2b9V1Yq8CPMbcSGTAekJYW3wHW93+lEGhrhMwtUkx0L9JyEJhJvn3SWFtrIqc vWMyzhd0aC6OFpuxAMQl4lnwNcbEDvC1/V1tsZ18/9e51y1o5gqt5DZ6AYxK58IpJJwT vyxHD8BJiG4L4qfJfPdKbAebMCfhH8df1fE1g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=lH85S/xYS9vbHi3/rSQ7bvJMu1FnWMC8EGuAlVWe1hMQCpPCsLi0i3b7CSnBHFobf1 pOW/SUBFOvCg+3IpT5TB8v/qq8AF0iyruZsrGVNZmNMY0pcRTA7wKQk0lYAxI1qs69oK S5VkaDmcHK5wzXF7ePMZvRwVjfnN+wR20UeBU= MIME-Version: 1.0 Received: by 10.224.27.90 with SMTP id h26mr6233733qac.243.1274999279612; Thu, 27 May 2010 15:27:59 -0700 (PDT) Received: by 10.229.190.83 with HTTP; Thu, 27 May 2010 15:27:59 -0700 (PDT) In-Reply-To: <20100527220821.GB82995@kay.kiwi-computer.com> References: <20100527220241.GA82995@kay.kiwi-computer.com> <20100527220821.GB82995@kay.kiwi-computer.com> Date: Thu, 27 May 2010 15:27:59 -0700 Message-ID: From: Garrett Cooper To: rick-freebsd2009@kiwi-computer.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: geom@freebsd.org Subject: Re: Getting useful diagnostics from geom(8) and friends X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 May 2010 22:28:00 -0000 On Thu, May 27, 2010 at 3:08 PM, Rick C. Petty wrote: > On Thu, May 27, 2010 at 05:02:41PM -0500, Rick C. Petty wrote: >> >> I'm not sure what you're doing wrong. =A0Do the following steps work? >> >> % gpart create -s MBR /dev/ad4 >> % gpart bootcode -b /boot/boot0 /dev/ad4 >> % gpart add -b 34 -s 128 -t freebsd /dev/ad4 >> % gpart bootcode -p /boot/gptboot -i 1 /dev/ad0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 ^^^^^^^^ > Oops, I meant /dev/ad4. > > In any case, show us the output of "gpart show /dev/ad4" if there are > any problems. Here's the entire operation; I realize there's a rounding error in the size calculation with capacity... Thanks, -Garrett ./clear_and_rewrite_partitions ad4 + atacontrol cap ad4 + awk /^lba supported/ { print $3 } + capacity=3D268435455 + dd if=3D/dev/zero of=3D/dev/ad4 bs=3D20m count=3D1 1+0 records in 1+0 records out 20971520 bytes transferred in 0.610148 secs (34371204 bytes/sec) + expr 0 + 268435455 / 1024 - 1 + dd if=3D/dev/zero of=3D/dev/ad4 bs=3D1m oseek=3D262142 dd: /dev/ad4: Input/output error 1+0 records in 0+0 records out 0 bytes transferred in 0.021521 secs (0 bytes/sec) + ls /dev/ad4s* ls: /dev/ad4s*: No such file or directory + gpart create -s MBR ad4 gpart: 22 scheme 'MBR' + gpart bootcode -b /boot/mbr -p /boot/boot0 -i 5 ad4 gpart: No such geom: ad4. + gpart add -b 34 -s 128 -t freebsd ad4 gpart: 22 geom 'ad4' + gpart show ad4 gpart: No such geom: ad4. + ls /dev/ad4s* ls: /dev/ad4s*: No such file or directory