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

Re: Minimum size of fat16 fs in image

Tom Deblauwe wrote:

Is it possible to make sure the fat16 filesystem on the resulting binary has a certain size? I have tried and made a binary hook, that adds a file of a certain size to the binary directory, so that my resulting size is e.g. 250MB. But then it fails saying that there is not enough space on the loop0 device. So the loop size is calculated earlier apparently.
So what is the best solution to solve this?

Apparently, I used this to create the file:

dd if=/dev/zero of=binary/emptyspace count=0 bs=1000000 seek=127

and then "du -ms binary" doesn't count it in. So now I use:

dd if=/dev/zero of=binary/emptyspace count=127 bs=1000000

And this works.

Best regards,

Reply to: