Util-Linux package development
 help / color / mirror / Atom feed
From: "Jörg Jenderek" <joerg.jen.der.ek@gmx.net>
To: util-linux@vger.kernel.org
Subject: [PATCH] fdisk: to recognize Intel Rapid Start hibernation partition
Date: Wed, 7 Oct 2015 11:41:23 +0200	[thread overview]
Message-ID: <201510071141.23757.joerg.jen.der.ek@gmx.net> (raw)

Dear util-linux maintainer,
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

pt-mbr-intel-hibernation.diff
--- util-linux-2.27/include/pt-mbr.h.old	2015-06-29 13:13:14.670847471 +0200
+++ util-linux-2.27/include/pt-mbr.h	2015-10-05 19:18:44.948641032 +0200
@@ -129,7 +129,8 @@
 	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,

pt-mbr-partnames-intel-hibernation.diff
--- util-linux-2.27/include/pt-mbr-partnames.h.old	2015-06-29 13:13:14.669847478 +0200
+++ util-linux-2.27/include/pt-mbr-partnames.h	2015-10-05 19:23:02.997989894 +0200
@@ -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")},


Signed-off-by: Jörg Jenderek <joerg.jen.der.ek@gmx.net>
Sorry that i do this way, but i have no knowledge about git toys.

Hope you can apply my patches in a future version of  the fdisk program.

thanks,
Jörg Jenderek
-- 
Jörg Jenderek	email:	joerg.jen.der.ek (at) gmx.net
Germany


             reply	other threads:[~2015-10-07  9:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-07  9:41 Jörg Jenderek [this message]
2015-10-09 11:14 ` [PATCH] fdisk: to recognize Intel Rapid Start hibernation partition Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201510071141.23757.joerg.jen.der.ek@gmx.net \
    --to=joerg.jen.der.ek@gmx.net \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox