If you are facing Structure padding problem then you can use #pragma pack(1) in your program,so that only 512 bytes will be stored in your disk