7

I love using firmware-mod-kid to modify SoHo router firmware. The problem I encounter is that it often bloats the size of the image. It appears this happens during the mksquashfs step.

If I'm just unsquashing a filesystem and then resquashing it with the same compression, with no modifications, why is the resulting image larger than the original?

asheeshr
  • 2,465
  • 8
  • 28
  • 41
mrduclaw
  • 4,066
  • 8
  • 27
  • 40
  • Do you have an exact example to share of this happening? It would be easier to analyze the before and after images rather than making blind guesses. – mncoppola Mar 30 '13 at 03:00
  • You're totally right, I do but not with me. I was hoping someone else had experienced this before and just knew... I'll post the firmware image I had problems with ASAP. Thanks. – mrduclaw Mar 30 '13 at 03:01

1 Answers1

3

There is possible padding, try adding the -nopad option, assuming that you are using the same compression method.

Nicolas
  • 566
  • 2
  • 4