From owner-freebsd-geom@FreeBSD.ORG Tue Jan 9 01:43:42 2007 Return-Path: X-Original-To: geom@freebsd.org Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9E81916A40F for ; Tue, 9 Jan 2007 01:43:42 +0000 (UTC) (envelope-from fernan.aguero@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.233]) by mx1.freebsd.org (Postfix) with ESMTP id 5FF9E13C441 for ; Tue, 9 Jan 2007 01:43:42 +0000 (UTC) (envelope-from fernan.aguero@gmail.com) Received: by nz-out-0506.google.com with SMTP id i11so3782497nzh for ; Mon, 08 Jan 2007 17:43:39 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qH+EhFMlDDQPRzR1j+olTP7KcUBv3v9yvoZAeDcEwtw+ks4GJ7mn/O0jigqql00eMzpQvLLSxwEyA2xf2UR3IXkLKj8YYAp278AISpTuMUU79bzS9QmlLZ75XaZczDkxih4AeGbYB4/lX22dMiYqlxYqto7FlFmKDAJAc7RHBCE= Received: by 10.35.27.2 with SMTP id e2mr49957994pyj.1168307019760; Mon, 08 Jan 2007 17:43:39 -0800 (PST) Received: by 10.35.16.1 with HTTP; Mon, 8 Jan 2007 17:43:39 -0800 (PST) Message-ID: <520894aa0701081743y49420d19u543e46edf7d61e79@mail.gmail.com> Date: Mon, 8 Jan 2007 22:43:39 -0300 From: "Fernan Aguero" To: "R. B. Riddick" In-Reply-To: <20070108231751.78304.qmail@web30310.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <520894aa0701081445i43d76098m418ce695d2133e53@mail.gmail.com> <20070108231751.78304.qmail@web30310.mail.mud.yahoo.com> Cc: geom@freebsd.org Subject: Re: clear metadata using dd? 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: Tue, 09 Jan 2007 01:43:42 -0000 On 1/8/07, R. B. Riddick wrote: > --- Fernan Aguero wrote: > > I imagine I have to use something like > > dd if=/dev/zero of=/dev/ad4s3? bs=512 count=1 > > > > but adding either skip=? or seek=? to taste. > > > > gama# fdisk -s /dev/ad4 > > /dev/ad4: 310101 cyl 16 hd 63 sec > > Part Start Size Type Flags > > 1: 63 16771041 0xa5 0x00 > > 2: 16771923 146795229 0xa5 0x80 > > 3: 146795292 188742708 0xa5 0x00 > > > What about "dd if=/dev/zero of=/dev/ad4s3 oseek=188742707"? gama# dd if=/dev/zero of=/dev/ad4s3 oseek=188742707 dd: /dev/ad4s3: Operation not permitted gama# whoami root > What does "gmirror status" say? gama# gmirror status Name Status Components mirror/gm0 COMPLETE ad4s2 ad6s2 As I said, I had (past time) a mirror on ad4s3/ad6s3, but I decided to resize s2 and s3, so I removed ad6s3 from the mirror, reformatted ad6 (dd bs=512 count=79 only) and moved all data in ad4s3 to it, but this time I put the active 'a' partition in the s2 slice. After doing this I rebooted mounting the root fs from ad6s2a and then I removed ad4s3 from the mirror and did the same reformatting with ad4. > I would remove the gmirror-s with "gmirror remove " (its > easier than dd)... IIRC this is what I did. -- Fernan Aguero