diff options
author | Karel Zak | 2016-02-18 12:57:13 +0100 |
---|---|---|
committer | Karel Zak | 2016-02-18 12:58:12 +0100 |
commit | 15b5e942f2c159db8f726079573bb77cdad560ed (patch) | |
tree | 9bed09b92c12888d782a9bdd75e7e6e471d54afa /disk-utils/sfdisk.8 | |
parent | fdisk: add --wipe (diff) | |
download | kernel-qcow2-util-linux-15b5e942f2c159db8f726079573bb77cdad560ed.tar.gz kernel-qcow2-util-linux-15b5e942f2c159db8f726079573bb77cdad560ed.tar.xz kernel-qcow2-util-linux-15b5e942f2c159db8f726079573bb77cdad560ed.zip |
sfdisk: add --wipe
This patch changes sfdisk behavior and it wipes foreign signatures
from the device to avoid collisions. The wipe functionality is
automatically enabled in the interactive mode only (user is always
warned about it), otherwise it's possible to control all by --wipe
<auto|never|always>.
The program does not change behavior when executed in scripts (echo
<something> | sfdisk), the option "--wipe=always" is required to enable
in this case.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/sfdisk.8')
-rw-r--r-- | disk-utils/sfdisk.8 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/disk-utils/sfdisk.8 b/disk-utils/sfdisk.8 index 31b43c2c9..1e60de519 100644 --- a/disk-utils/sfdisk.8 +++ b/disk-utils/sfdisk.8 @@ -208,6 +208,17 @@ is no label on the device yet, then the type defaults to \fBdos\fR. .BR \-Y , " \-\-label\-nested " \fItype Force editing of a nested disk label. The primary disk label has to exist already. This option allows to edit for example a hybrid/protective MBR on devices with GPT. + +.TP +.BR -w , " \-\-wipe "\fImode +Wipe filesystems, RAIDs and partition tables signatures from the device, in +order to avoid possible collisions. The \fImode\fR can be \fBauto\fR, +\fBnever\fR or \fBalways\fR. The default is \fBauto\fR, in this case signatures +are wiped in the interactive mode only, in all cases detected signatures are +reported by warning message before a new partition table is created. See also +.BR wipefs (8) +command. + .TP .BR \-v , " \-\-version" Display version information and exit. |