Menu

clone of gtp partition attributes fails

storch
2016-11-09
2016-11-16
  • storch

    storch - 2016-11-09

    hi,
    i have a harddrive with gpt partitions. on the 2nd partition i have to set two attributes with gdisk "63" and "0" (dont know the exactly name of them). After cloning the entire disk the attributes disappear.
    i am using clonezilla-live-20161024-yakkety-amd64.
    in the image directory there is a sdb-pt.sf file. it contains:

    label: gpt
    label-id: B87C5FB4-DBF4-45DB-8BB8-20FC424C51D8
    device: /dev/sdb
    unit: sectors
    first-lba: 34
    last-lba: 1953525134
    
    /dev/sdb1 : start=        2048, size=   215040000, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=7A6C96F2-B5CA-403D-BC19-6A8BC0D4FA2E, name="Linux filesystem"
    /dev/sdb2 : start=   215042048, size=  1736435712, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=4AE9D4D0-486F-4D98-848C-893F9E1C6985, name="Microsoft basic data", attrs="RequiredPartiton GUID:63"
    /dev/sdb3 : start=  1952526336, size=       20480, type=21686148-6449-6E6F-744E-656564454649, uuid=3C535383-91D1-4D10-926E-B79B3E7AEF4C
    

    what can i do?

    regards

    cstorch

     
  • storch

    storch - 2016-11-09

    Running sfdisk --force /dev/sdb < /home/partimag/2016-11-08-arch-attrib2/sdb-pt.sf (from the log)
    simply does not has an effect on gpt attributes

     
  • Steven Shiau

    Steven Shiau - 2016-11-16

    In that case, you should use gdisk to set the attribute again.
    Acutally from the manual gdisk you can find:
    Set attributes. GPT provides a 64-bit attributes field that can
    be used to set features for each partition. gdisk supports four
    attributes: system partition, read-only, hidden, and do not
    automount. You can set other attributes, but their numbers
    aren't translated into anything useful. In practice, most OSes
    seem to ignore these attributes.

    That's why sfdisk does not keep those info I believe. They are simply ignored by most of the OSes.

    Steven

     
  • storch

    storch - 2016-11-16

    Thanks for reply.
    setting gpt Attributes is not that unusual, i think.
    Maybe we should rename clonezilla to something like "Almostclonezilla"
    cstorch

     

Log in to post a comment.

MongoDB Logo MongoDB