Re: h2testw.exe anyone??
next time I need to do this I'm going to use dd - which will write until it fails unlike some other utilities which refuse to write at all - and then fsck (GParted) to "fix" the partition size
It didn't work for me, resulting truncated image wouldn't boot, but managed to faff about mounting the image via loopback and shrinking the filesystem down slightly so the resultant new image was small enough.
Wasn't any actual data on it, but would have taken longer to get the boot environment configured back how it was supposed to be than it took to mess about with the filesystem. At least I had an image of the SD card from a few months before it failed to go back to.