Menu

New Linux GPT type code

2011-06-28
2012-08-23
  • Roderick W. Smith

    Hi,

    You may want to know that there's a new Linux GPT type code that should beging
    appearing "in the wild" before too long. The code is
    0FC63DAF-8483-4772-8E79-3D69D8477DE4, and it's discussed on the parted mailing
    list (http://lists.gnu.org/archive/html/bug-
    parted/2011-06/index.html;
    see entries from June 25 to the present). The
    code has been implemented in GPT fdisk (gdisk/sgdisk) version 0.7.2, and
    should make it into parted soon -- with the next release, with any luck. This
    type code is intended to be used for Linux filesystems (ext2/3/4, XFS, etc.),
    replacing the Microsoft Basic Data type code for these filesystems. This will
    keep the Linux partitions from showing up as unformatted Windows partitions in
    Windows. Since Boot Info Script reports GPT partition types, I thought you'd
    want a heads-up on this so you can adjust your script appropriately.

    If you need to test this, you can use gdisk 0.7.2; or I can provide you with a
    patch file for parted 3.0; or you can wait for the patched version to appear
    in parted.

     
  • Gert Hulselmans

    Gert Hulselmans - 2011-06-29

    Thanks for letting me know.

    Can you try this patched bootinfoscript?

    wget -O bootinfoscript '[url]http://bootinfoscript.git.sourceforge.net/git/gitweb.cgi?p=bootinfoscript/bootinfoscript;a=blob_plain;f=bootinfoscript;hb=HEAD[/url]'
    
     
  • Roderick W. Smith

    It correctly identified all the partitions with this new type code on two test
    systems. My only comment is that "Data partition (Linux)" might not be
    sufficiently distinct from "Data partition (Windows/Linux)" as a name;
    somebody scanning through the copious output from the script might easily
    overlook that difference, which might be important in some cases. It looks
    like you've got a naming convention with the OS in parentheses at the end of
    the name, so maybe "Filesystem data (Linux)" or "Filesystem partition (Linux)"
    would be good. This type code is explicitly for filesystem data, so those
    are fair descriptions, and they might even clue somebody in to a problem if
    such a partition holds swap space or something.

     
  • Gert Hulselmans

    Gert Hulselmans - 2011-06-29

    I got the names that correspond with a certain GPT GUID, from Wikipedia:

    http://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs

    I don't know if this list is complete or not.

    Can you check all GPT GUID entries in Boot Info Script or give me a
    better/more complete list?

    line 890:

    ## Function to convert GPT's Partition Type. ##
    
     

Log in to post a comment.