diff options
author | Karel Zak | 2014-04-24 13:42:54 +0200 |
---|---|---|
committer | Karel Zak | 2014-04-24 13:42:54 +0200 |
commit | 24ed07818403f2ce52f9116a749036d58b91ca81 (patch) | |
tree | b9cfac8da2bd0d21bb075266ef715b2eaf776b31 /misc-utils/wipefs.8 | |
parent | docs: update TODO (diff) | |
download | kernel-qcow2-util-linux-24ed07818403f2ce52f9116a749036d58b91ca81.tar.gz kernel-qcow2-util-linux-24ed07818403f2ce52f9116a749036d58b91ca81.tar.xz kernel-qcow2-util-linux-24ed07818403f2ce52f9116a749036d58b91ca81.zip |
wipefs: don't erase nested partition tables by default
It's possible the partition contains a partition table (BSD, or hybrid
boot images). It could be unexpected for users that the lost all (or
another) partitions when work with non-whole disk device. Let's
require --force.
For example:
# wipefs --all /dev/sdb
erases all including partition table, but on hybrid disk where the
first partition starts at first sector (so partition table is within
the first partition):
# wipefs --all /dev/sdb1
/dev/sdb1: ignore nested "dos" partition table on non-whole disk device
wipefs: Use the --force option to force erase.
asks for --force.
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1077310
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/wipefs.8')
-rw-r--r-- | misc-utils/wipefs.8 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/misc-utils/wipefs.8 b/misc-utils/wipefs.8 index 0f280b38a..207b67501 100644 --- a/misc-utils/wipefs.8 +++ b/misc-utils/wipefs.8 @@ -37,6 +37,11 @@ table will still be visible by another magic string on another offset. When used with option \fB-a\fR, all magic strings that are visible for libblkid are erased. +Note that by default +.B wipefs +does not erase nested partition tables on non-whole disk devices. The option +\-\-force is required. + .SH OPTIONS .TP .BR \-a , " \-\-all" |