summaryrefslogtreecommitdiffstats
path: root/disk-utils/fdisk.8
diff options
context:
space:
mode:
authorKarel Zak2015-04-13 17:24:45 +0200
committerKarel Zak2015-04-13 17:24:45 +0200
commitaeb9a30ba4e99bfaf33a0986562766d8480a3e4c (patch)
tree64ad6992debbd9a73eaa9f8ff7286a2716a17d1a /disk-utils/fdisk.8
parentsfdisk: enable bootbits protection (diff)
downloadkernel-qcow2-util-linux-aeb9a30ba4e99bfaf33a0986562766d8480a3e4c.tar.gz
kernel-qcow2-util-linux-aeb9a30ba4e99bfaf33a0986562766d8480a3e4c.tar.xz
kernel-qcow2-util-linux-aeb9a30ba4e99bfaf33a0986562766d8480a3e4c.zip
fdisk: add --protect-boot
Now fdisk erases the begin of the device when create a new disk label, it seems like disadvantage for some use-cases. Reported-by: Jean-Loup 'clippix' Bogalho <clippix@lse.epita.fr> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/fdisk.8')
-rw-r--r--disk-utils/fdisk.84
1 files changed, 4 insertions, 0 deletions
diff --git a/disk-utils/fdisk.8 b/disk-utils/fdisk.8
index 1350d0257..fb298220e 100644
--- a/disk-utils/fdisk.8
+++ b/disk-utils/fdisk.8
@@ -53,6 +53,10 @@ to override the kernel's ideas.) Since util-linux-2.17, \fBfdisk\fR differentia
between logical and physical sector size. This option changes both sector sizes to
.IB sectorsize .
.TP
+\fB\-B\fR, \fB\-\-protect\-boot\fP
+Don't erase the begin of the first disk sector when create a new disk label. This
+feature is supported for GPT and MBR.
+.TP
\fB\-c\fR, \fB\-\-compatibility\fR[\fI=mode\fR]
Specify the compatibility mode, 'dos' or 'nondos'. The default is non-DOS
mode. For backward compatibility, it is possible to use the option without