From owner-freebsd-questions@FreeBSD.ORG Sun Jun 5 08:25:31 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B386106564A for ; Sun, 5 Jun 2011 08:25:31 +0000 (UTC) (envelope-from rsimmons0@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 149E28FC0C for ; Sun, 5 Jun 2011 08:25:30 +0000 (UTC) Received: by ywf7 with SMTP id 7so1843087ywf.13 for ; Sun, 05 Jun 2011 01:25:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=BLBHW1GPwf/bMQwXizqRSKKu9PB3gUmKtNLageduwQk=; b=mdqCzTglmPzqUpIEgagV6uy3p2ItiKp7AVaJdsN33y5xHFG9L82mcyaNVjKQIoUqB4 qrybwSRiDNAxxKQpGeSnHyiAo83Oik8oKZRHlIANyjykdoydRNJBw84c07WBPzdee3L6 TqgGmYXHHCtLbjJkraUwrkHJkwe4zzqUwm618= 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 :content-type:content-transfer-encoding; b=bO5c/hbisXpS9KU4NkmpG8MtJc0ME5JB03RF9+S9fm9iGlwqC4y9rfHXPeSqk3BhWa CtjMiEYSE6n5O9BHBYLcTbgPhbBJC5GPp0zNZ9yfp87AZudLPe1weW/aH3vmHEa1FMNF HOyD3802jG9yP30MdPoLzFHFWbF2u1tsyuy3s= MIME-Version: 1.0 Received: by 10.100.251.14 with SMTP id y14mr2701701anh.102.1307262330028; Sun, 05 Jun 2011 01:25:30 -0700 (PDT) Received: by 10.100.227.17 with HTTP; Sun, 5 Jun 2011 01:25:29 -0700 (PDT) In-Reply-To: <4deb31db.HAlrICd12fNR9NoX%perryh@pluto.rain.com> References: <4DEAAE54.1050508@locolomo.org> <20110605044021.GA2213@tinyCurrent> <201106050103.47416.rsimmons0@gmail.com> <4deb31db.HAlrICd12fNR9NoX%perryh@pluto.rain.com> Date: Sun, 5 Jun 2011 04:25:29 -0400 Message-ID: From: Robert Simmons To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: Partitioning with gpart or old style slices? 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: Sun, 05 Jun 2011 08:25:31 -0000 On Sun, Jun 5, 2011 at 3:35 AM, wrote: > Robert Simmons wrote:> >> > How do I wipe the whole thing in one go so that I can start >> > afresh? >> > >> > gpart destroy ad4 ?? >> >> Yes, but first you must delete all of the slices/partitions. >> Think of it this way: you must go backwards down the path you >> just came with a delete for each add, then a destroy for each >> create. > > So there is no way to just say "clean up this whole disk" in a > single operation? =A0That seems a considerable step backwards, > given that the old tools have "fdisk -i" and "bsdlabel -w". I've never had to use it, but I think "gpart destroy -F ad4" is what you are looking for, so I guess it is not necessary to step backwards after all.