[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#497110: improved dmraid support in D-I



On Sunday 07 September 2008, Frans Pop wrote:
> The offsets are probably some fixed distance from the end of the disk.

The offsets appear to be:
for i in 0 1 2 3; do
	echo $(( ($(cat hda_sil.size) - ($i * 512 + 1)) * 512 ))
done

fdisk -ul /dev/hda reports:
80026361856 bytes; 156301488 sectors

fdisk -ul /dev/mapper/sil_* reports:
80025313280 bytes; 156299440 sectors

So that is 2048 sectors less, which matches 4 * 512 in which this metadata 
lives.

In the .dat files:
- the value 156299440 (b0f05009) can be found at offset 108
- the value 156301488 (b0f85009) can be found at offsets 120 and 200


Reply to: