Page MenuHomeFreeBSD

D12336.diff
No OneTemporary

D12336.diff

Index: head/sbin/geom/class/part/gpart.8
===================================================================
--- head/sbin/geom/class/part/gpart.8
+++ head/sbin/geom/class/part/gpart.8
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd July 25, 2016
+.Dd September 19, 2017
.Dt GPART 8
.Os
.Sh NAME
@@ -1324,6 +1324,29 @@
After creating all required partitions, embed bootstrap code into them:
.Bd -literal -offset indent
/sbin/gpart bootcode -p /boot/boot1 da0
+.Ed
+.Ss Deleting partitions and partitioning scheme
+If you get a
+.Em "Device busy"
+error when trying to destroy a partition table, remember that you must
+delete all its partitions first with the
+.Cm delete
+action.
+In this example, assume we have
+.Pa da0
+with three partitions:
+.Bd -literal -offset indent
+/sbin/gpart delete -i 3 da0
+/sbin/gpart delete -i 2 da0
+/sbin/gpart delete -i 1 da0
+/sbin/gpart destroy da0
+.Ed
+.Pp
+Alternatively, you can invoke the
+.Cm destroy
+action with the
+.Fl F
+flag.
.Ed
.Ss Backup and Restore
.Pp

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 7:04 PM (14 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15534390
Default Alt Text
D12336.diff (1017 B)

Event Timeline