summaryrefslogtreecommitdiffstats
path: root/disk-utils/fdisk.8
diff options
context:
space:
mode:
authorKarel Zak2014-11-12 11:15:06 +0100
committerKarel Zak2014-11-12 11:15:06 +0100
commita30e4ef423c8c57d4510d6353f3b00080a7290e8 (patch)
tree9370cc8c6871874bb7029b3ba4407946105441e6 /disk-utils/fdisk.8
parentlibfdisk: fix script parser, add debug messages (diff)
downloadkernel-qcow2-util-linux-a30e4ef423c8c57d4510d6353f3b00080a7290e8.tar.gz
kernel-qcow2-util-linux-a30e4ef423c8c57d4510d6353f3b00080a7290e8.tar.xz
kernel-qcow2-util-linux-a30e4ef423c8c57d4510d6353f3b00080a7290e8.zip
fdisk: add support for sfdisk scripts
New commands 'I' and 'O' allows to read and write sfdisk compatible scripts by fdisk. It means that you can save your work (partition table) and later use it (in fdisk, sfdisk or cfdisk) to create a new partition table. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/fdisk.8')
-rw-r--r--disk-utils/fdisk.813
1 files changed, 13 insertions, 0 deletions
diff --git a/disk-utils/fdisk.8 b/disk-utils/fdisk.8
index c998e2ca5..56caab16d 100644
--- a/disk-utils/fdisk.8
+++ b/disk-utils/fdisk.8
@@ -147,6 +147,19 @@ For backward compatibility fdisk also accepts the suffixes KB=1000,
MB=1000*1000, and so on for GB, TB, PB, EB, ZB and YB. These 10^N suffixes
are deprecated.
+.SH SCRIPT FILES
+.B fdisk
+allows to read (by 'I' command) sfdisk compatible script files. The script is
+applied to in-memory partition table, and then it is possible to modify the
+partition table before you write it to the device.
+.PP
+And vice-versa it is possible to write the current in-memory disk layout
+to the script file by command 'O'.
+.PP
+The script files are compatible between cfdisk, sfdisk, fdisk and another
+libfdisk applications. For more details see
+.BR sfdisk (8).
+
.SH DISK LABELS
.B GPT (GUID Partition Table)
.RS