tpylkko wrote:Is it not possible to write the larger img file to the too small partiton in Windows? Because unless your disk is entirely full, which it should never be, then the last bit of the image that you loose will contain nothing.
That is, if the new sd card is smaller tjan the image of the old one, then why not just write the image on it anyway? I don't have windows, but would presume that you can do this in any OS.
Unfortunately you end up with a partition table that allows writing "off the end" of the card. So it is not that simple. The partition sizes must fit before copying. Then if they are too small for the card, they can be expanded.
One possibility is to manually adjust the last partition of any newly installed card to leave some margin for copying to a smaller card. OK as long as no-one uses size adjust (and Jessie has been run once, so the auto-adjust isn't triggered after the manual change). DISCLAIMER: I haven't tested this!
EDIT: Grammatical correction