Hello,
I am trying to save more than one font to the raw partition. Each time I try to write to the partition I manage to corrupt the other font. What I do is write the first font beginning at the address listed as the first sector. Then I look at the size of the file and divide the bytes by 512 to get the number of sectors that were written, then I round up and add that number to the first sector address to get the address of where the other font could be written.
So for example, the first sector of the non-fat partition according to RMPET was 4194241,the size of the file was 32KB so 32000/512 = 62.5, so I would say that the next sector could be 4194241 + 63 = 4194304. But when I try this somehow the first font is corrupted. What am I doing wrong?
One thing I haven't tried is writing both fonts at the same time by adding 2 lines to the script. I'll try that and see if it makes a difference. I guess I could always use the method 1 for the other font, but I was trying to save space in the fat partition.
Thanks,
Mark
I am trying to save more than one font to the raw partition. Each time I try to write to the partition I manage to corrupt the other font. What I do is write the first font beginning at the address listed as the first sector. Then I look at the size of the file and divide the bytes by 512 to get the number of sectors that were written, then I round up and add that number to the first sector address to get the address of where the other font could be written.
So for example, the first sector of the non-fat partition according to RMPET was 4194241,the size of the file was 32KB so 32000/512 = 62.5, so I would say that the next sector could be 4194241 + 63 = 4194304. But when I try this somehow the first font is corrupted. What am I doing wrong?
One thing I haven't tried is writing both fonts at the same time by adding 2 lines to the script. I'll try that and see if it makes a difference. I guess I could always use the method 1 for the other font, but I was trying to save space in the fat partition.
Thanks,
Mark
Comment