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
Running sfdisk --force /dev/sdb < /home/partimag/2016-11-08-arch-attrib2/sdb-pt.sf
simply does not has an effect on gpt attributes
regards
As explained here:
https://sourceforge.net/p/clonezilla/discussion/Clonezilla_live/thread/08e435e6/?limit=25#6deb
Those attributes are not used by most of the OSes, and sfdisk actually does not save the info when using "-d" option. Therefore if you really need those attributes, please manually run gdisk or sgdisk to se that.
In the future, if it's really necessary, and sfdisk supports that, Clonezilla should support that, too.
Steven
for me it is necessary
cstorch
In that case, Clonezilla live provides ocs_postrun* parameters so that you can use that to customize your requirement:
http://clonezilla.org/fine-print-live-doc.php?path=./clonezilla-live/doc/99_Misc/00_live-boot-parameters.doc#00_live-boot-parameters.doc
Steven