Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 May 2010 15:27:59 -0700
From:      Garrett Cooper <yanefbsd@gmail.com>
To:        rick-freebsd2009@kiwi-computer.com
Cc:        geom@freebsd.org
Subject:   Re: Getting useful diagnostics from geom(8) and friends
Message-ID:  <AANLkTikfGX20EzmhbrctGFdKGAKDxc19XIsRTNJDwErK@mail.gmail.com>
In-Reply-To: <20100527220821.GB82995@kay.kiwi-computer.com>
References:  <AANLkTimg6CKc0RTNpd-0oI5MegjVPd0eiS5pQCj-chvV@mail.gmail.com> <20100527220241.GA82995@kay.kiwi-computer.com> <20100527220821.GB82995@kay.kiwi-computer.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 27, 2010 at 3:08 PM, Rick C. Petty
<rick-freebsd2009@kiwi-computer.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikfGX20EzmhbrctGFdKGAKDxc19XIsRTNJDwErK>