diff options
author | Karel Zak | 2016-05-04 12:43:35 +0200 |
---|---|---|
committer | Karel Zak | 2016-05-04 12:43:35 +0200 |
commit | ba465623d84b9e330f248a477d078b5f280b7943 (patch) | |
tree | ddf639b7e8657d27e3a426cdad8ca7c3421952ec /disk-utils/fdisk.8 | |
parent | libfdisk: add fdisk_wipe_partition() (diff) | |
download | kernel-qcow2-util-linux-ba465623d84b9e330f248a477d078b5f280b7943.tar.gz kernel-qcow2-util-linux-ba465623d84b9e330f248a477d078b5f280b7943.tar.xz kernel-qcow2-util-linux-ba465623d84b9e330f248a477d078b5f280b7943.zip |
fdisk: add --wipe-partitions=auto|never|default
The option allows to remove filesystes/RAIDs from newly created
partitions before the partition table is updated (and partition
device created).
The default is "auto" in this case wipe is enabled in interactive mode
only and user's confirmation (yes/no dialog) is required. Note that
keep filesystem signature on partition is pretty valid use-case, so we
don't erase anything by default.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/fdisk.8')
-rw-r--r-- | disk-utils/fdisk.8 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/disk-utils/fdisk.8 b/disk-utils/fdisk.8 index 41069dd7a..5d644d8d6 100644 --- a/disk-utils/fdisk.8 +++ b/disk-utils/fdisk.8 @@ -130,6 +130,18 @@ before a new partition table is created. See also command. .TP +\fB\-W\fR, \fB\-\-wipe-partition\fR \fIwhen\fR +Wipe filesystem, RAID and partition-table signatures from a newly created +partitions, in order to avoid possible collisions. The argument \fIwhen\fR can +be \fBauto\fR, \fBnever\fR or \fBalways\fR. When this option is not given, the +default is \fBauto\fR, in which case signatures are wiped only when in +interactive mode and after confirmation by user. In all cases detected +signatures are reported by warning messages before a new partition is +created. See also +.BR wipefs (8) +command. + +.TP \fB\-V\fR, \fB\-\-version\fR Display version information and exit. |