From owner-svn-src-head@freebsd.org Fri Mar 2 19:07:33 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 55DA9F3E3BC; Fri, 2 Mar 2018 19:07:33 +0000 (UTC) (envelope-from wblock@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0B1E7733AA; Fri, 2 Mar 2018 19:07:33 +0000 (UTC) (envelope-from wblock@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 056791B774; Fri, 2 Mar 2018 19:07:33 +0000 (UTC) (envelope-from wblock@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w22J7Wjf064832; Fri, 2 Mar 2018 19:07:32 GMT (envelope-from wblock@FreeBSD.org) Received: (from wblock@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w22J7WgH064831; Fri, 2 Mar 2018 19:07:32 GMT (envelope-from wblock@FreeBSD.org) Message-Id: <201803021907.w22J7WgH064831@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: wblock set sender to wblock@FreeBSD.org using -f From: Warren Block Date: Fri, 2 Mar 2018 19:07:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r330291 - head/sbin/geom/class/part X-SVN-Group: head X-SVN-Commit-Author: wblock X-SVN-Commit-Paths: head/sbin/geom/class/part X-SVN-Commit-Revision: 330291 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2018 19:07:33 -0000 Author: wblock (doc committer) Date: Fri Mar 2 19:07:32 2018 New Revision: 330291 URL: https://svnweb.freebsd.org/changeset/base/330291 Log: Clarify and clean up some language, and add an explicit example. Sponsored by: iXsystems Differential Revision: https://reviews.freebsd.org/D12336 Modified: head/sbin/geom/class/part/gpart.8 Modified: head/sbin/geom/class/part/gpart.8 ============================================================================== --- head/sbin/geom/class/part/gpart.8 Fri Mar 2 18:57:00 2018 (r330290) +++ head/sbin/geom/class/part/gpart.8 Fri Mar 2 19:07:32 2018 (r330291) @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd February 10, 2018 +.Dd March 2, 2018 .Dt GPART 8 .Os .Sh NAME @@ -1327,16 +1327,16 @@ After creating all required partitions, embed bootstra .Bd -literal -offset indent /sbin/gpart bootcode -p /boot/boot1 da0 .Ed -.Ss Deleting partitions and partitioning scheme -If you get a +.Ss Deleting Partitions and Destroying the Partitioning Scheme +If a .Em "Device busy" -error when trying to destroy a partition table, remember that you must -delete all its partitions first with the +error is shown when trying to destroy a partition table, remember that +all of the partitions must be deleted first with the .Cm delete action. -In this example, assume we have +In this example, .Pa da0 -with three partitions: +has three partitions: .Bd -literal -offset indent /sbin/gpart delete -i 3 da0 /sbin/gpart delete -i 2 da0 @@ -1344,11 +1344,15 @@ with three partitions: /sbin/gpart destroy da0 .Ed .Pp -Alternatively, you can invoke the -.Cm destroy -action with the +Rather than deleting each partition and then destroying the partitioning +scheme, the .Fl F -flag. +option can be given with +.Cm destroy +to delete all of the partitions before destroying the partitioning scheme. +This is equivalent to the previous example: +.Bd -literal -offset indent +/sbin/gpart destroy -F da0 .Ed .Ss Backup and Restore .Pp