Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156685843
D12336.id32954.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
987 B
Referenced Files
None
Subscribers
None
D12336.id32954.diff
View Options
Index: /usr/src/sbin/geom/class/part/gpart.8
===================================================================
--- /usr/src/sbin/geom/class/part/gpart.8
+++ /usr/src/sbin/geom/class/part/gpart.8
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd July 25, 2016
+.Dd September 12, 2017
.Dt GPART 8
.Os
.Sh NAME
@@ -1325,6 +1325,29 @@
.Bd -literal -offset indent
/sbin/gpart bootcode -p /boot/boot1 da0
.Ed
+.Ss Deleting partitions and partitioning scheme
+If you get
+.Em "Device busy"
+error when trying to destroy a partition table, remember that you must
+delete all its partitions first with
+.Cm delete
+action.
+In this example, assume we have
+.Pa da0
+with three partitions:
+.Bd -literal -offset indent
+/sbin/gpart delete -i 1 da0
+/sbin/gpart delete -i 2 da0
+/sbin/gpart delete -i 3 da0
+/sbin/gpart destroy da0
+.Ed
+.Pp
+Alternatively, you can invoke
+.Cm destroy
+action with
+.Fl F
+flag.
+.Ed
.Ss Backup and Restore
.Pp
Create a backup of the partition table from
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 4:46 PM (4 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33130046
Default Alt Text
D12336.id32954.diff (987 B)
Attached To
Mode
D12336: Give example of deleting partitions and partitioning scheme
Attached
Detach File
Event Timeline
Log In to Comment