1
Vote

BootConfig: incorrect start offset for BIOS partition on 4K disk

description

Hi Ken,

The ctor of DeviceElementValue parses a PhysicalVolumeInfo instance and uses 512 bytes per sector to set the partition identity for BIOS partitions:
Utilities.WriteBytesLittleEndian(pvi.PhysicalStartSector * 512, record.PartitionIdentity, 0);
I think bytes per sector should be given by pvi, something like pvi.BiosGeometry.BytesPerSector, to make this work on 4K too.

comments