On Mon, 2009-07-20 at 23:21 +0200, Jan Damborsky wrote: > Hi Alex, > > > Alexander Eremin wrote: > > Oh, thanks Martin, > > of course I can use his heap of a code, but I hope to use libti. Possibly > > it's necessary to initialize pactive differently... > > libti doesn't support this kind of modifications of existing partition - > read-modify-write operation (like changing partition ID or > marking partition active). > If you would like to use libti for this, you would need to > provide full partition information for the one to be modified > (start sector TI_ATTR_FDISK_PART_RSECTS, size TI_ATTR_FDISK_PART_NUMSECTS, > partition ID TI_ATTR_FDISK_PART_IDS, active flag TI_ATTR_FDISK_PART_ACTIVE) > and set TI_ATTR_FDISK_PART_PRESERVE attribute to TRUE to preserve for > other fdisk partitions you don't want to change. You also need to provide > TI_ATTR_FDISK_DISK_NAME (ctd name of target disk) and TI_ATTR_FDISK_PART_NUM > to contain total number of partitions. > > Thank you, > Jan
Great, thanks, Jan! -- ::alhazred
