Changeset View
Changeset View
Standalone View
Standalone View
gpart.8
Context not available. | |||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd July 25, 2016 | .Dd September 18, 2017 | ||||
.Dt GPART 8 | .Dt GPART 8 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
Context not available. | |||||
.Bd -literal -offset indent | .Bd -literal -offset indent | ||||
/sbin/gpart bootcode -p /boot/boot1 da0 | /sbin/gpart bootcode -p /boot/boot1 da0 | ||||
.Ed | .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 1 da0 | |||||
/sbin/gpart delete -i 2 da0 | |||||
/sbin/gpart delete -i 3 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 | .Ss Backup and Restore | ||||
.Pp | .Pp | ||||
Create a backup of the partition table from | Create a backup of the partition table from | ||||
Context not available. |