]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: to recognize Intel Rapid Start hibernation partition
authorJörg Jenderek <joerg.jen.der.ek@gmx.net>
Wed, 7 Oct 2015 09:41:23 +0000 (11:41 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 9 Oct 2015 11:07:31 +0000 (13:07 +0200)
I use Intel Rapid Start Technology on my PC. According to their User Guide
"Rapid_Start_Technology_User_Guide_v1.4.pdf" I create a partition with id=84
for hibernation by this Technology.

Unfortunately the software fdisk (util-linux-2.27) classifies that partition as
"OS/2 hidden C:".  That is not wrong, but on website
https://en.wikipedia.org/wiki/Partition_type is written, that id 0x84 beside
using for hiding drive C: this type is a also used as hibernation partition for
Microsoft  APM and also for Intel Rapid Start

So I patched 2 header files so that fdisk recognize this partition type variation.

Signed-off-by: Karel Zak <kzak@redhat.com>
include/pt-mbr-partnames.h
include/pt-mbr.h

index 6fbde90f3498fa82fc3ca969b5d4d12f6bc4de75..97097d3759f947c6684399c4fdbdee0f1f19c07c 100644 (file)
@@ -51,7 +51,9 @@
        {0x81, N_("Minix / old Linux")},/* Minix 1.4b and later */
        {0x82, N_("Linux swap / Solaris")},
        {0x83, N_("Linux")},
-       {0x84, N_("OS/2 hidden C: drive")},
+       {0x84, N_("OS/2 h. C:|Intel hibernation")},/* OS/2 hidden C: drive,
+                                          hibernation type Microsoft APM
+                                          or hibernation Intel Rapid Start */
        {0x85, N_("Linux extended")},
        {0x86, N_("NTFS volume set")},
        {0x87, N_("NTFS volume set")},
index 2f837657beb380af31c7463fbdb08f640a1b018c..90be95b1fafbf702941e3ea5ee261054b1adda0a 100644 (file)
@@ -129,7 +129,8 @@ enum {
        MBR_LINUX_SWAP_PARTITION        = 0x82,
        MBR_SOLARIS_X86_PARTITION       = MBR_LINUX_SWAP_PARTITION,
        MBR_LINUX_DATA_PARTITION        = 0x83,
-       MBR_OS2_HIDDEN_DRIVE_PARTITION  = 0x84,
+       MBR_OS2_HIDDEN_DRIVE_PARTITION  = 0x84, /* also hibernation MS APM, Intel Rapid Start */
+       MBR_INTEL_HIBERNATION_PARTITION = MBR_OS2_HIDDEN_DRIVE_PARTITION,
        MBR_LINUX_EXTENDED_PARTITION    = 0x85,
        MBR_NTFS_VOL_SET1_PARTITION     = 0x86,
        MBR_NTFS_VOL_SET2_PARTITION     = 0x87,