The size of the partition is determined by its entry in the partition table entry. When you write the image it writes the size of the image in the partition table entry. First create a partition and see its size using fdisk , note tit down , now write the image and again use the fdisk to see the size , if it is changed than you can write a simple C program to change it back to its original size . I can provide you with the code , if you are interested . :-)
Villie
|