From 7eece0972de5ad8142ef37a853624fb94c1b3685 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Sat, 7 Aug 2004 07:52:31 +0000 Subject: [PATCH] Document the remove command. --- sbin/gpt/gpt.8 | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/sbin/gpt/gpt.8 b/sbin/gpt/gpt.8 index f284eef4889a..49d6132a49c1 100644 --- a/sbin/gpt/gpt.8 +++ b/sbin/gpt/gpt.8 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 6, 2004 +.Dd August 7, 2004 .Os .Dt GPT 8 .Sh NAME @@ -194,6 +194,42 @@ option prevents migrating .Bx disk labels into GPT partitions by creating the GPT equivalent of a slice. +.\" ==== remove ==== +.It Xo +.Nm +.Ic remove +.Op Fl b Ar number +.Op Fl i Ar index +.Op Fl s Ar count +.Op Fl t Ar type +.Ar device ... +.Xc +The +.Ic remove +command allows the user to remove any partitions that match the selection. +BEWARE: when no options are given, all GPT partitions will match and thus +will be deleted. +.Pp +The +.Fl b Ar number +option selects the partitions that starts at the given number. +.Pp +The +.Fl i Ar index +option selects the partition with the given partition number. +.Pp +The +.Fl s Ar count +option selects all partitions that have the given size. +This can cause multiple partitions to be removed. +.Pp +The +.Fl t Ar type +option selects all partitions that have the given type. +The type is given as an UUID or by the aliases that the +.Ic add +command accepts. +This can cause multiple partitions to be removed. .\" ==== show ==== .It Xo .Nm