]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sfdisk: (man) add note about type and shortcuts collision
authorKarel Zak <kzak@redhat.com>
Thu, 20 Feb 2020 14:26:28 +0000 (15:26 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 20 Feb 2020 14:26:28 +0000 (15:26 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/sfdisk.8

index a9872ce0ab3e05978947f93e7b3ad16326d45423..2ba72b136929e6701840191cf0baed767d924d4c 100644 (file)
@@ -404,8 +404,12 @@ partition; existing partitions will be resized as required.
 .sp
 The partition
 .I type
-is given in hex for MBR (DOS), without the 0x prefix, a GUID string for GPT, or
-a shortcut:
+is given in hex for MBR (DOS) where 0x prefix is optional; a GUID string for
+GPT; or a shortcut. It's recommended to use two letters for MBR hex codes to
+avoid collision between shortcut 'E' and '0E' MBR hex code. For backward
+compatibility sfdisk tries to interpret
+.I type
+as a shortcut as a first possibility. Supported shortcuts:
 .RS
 .TP
 .B L
@@ -415,7 +419,7 @@ Linux; means 83 for MBR and 0FC63DAF-8483-4772-8E79-3D69D8477DE4 for GPT.
 swap area; means 82 for MBR and 0657FD6D-A4AB-43C4-84E5-0933C84B4F4F for GPT
 .TP
 .B E
-extended partition; means 5 for MBR
+extended partition; means 05 for MBR
 .TP
 .B H
 home partition; means 933AC7E1-2EB4-4F13-B844-0E14E2AEF915 for GPT