08-20-2018, 04:40 PM
(08-19-2018, 07:19 PM)hifix Wrote: I've been trying to trim the size of a backed up img file (from an 8 gig micro sd card). After win32diskimager has done its thing, i'm still stuck with an 8 gig image.
Tried : installing linux on a virtual machine using pishrink only to have a questionably sized, non bootable img.
Found a much easy way (and tested it).
1. Install a hex editor (i used hex editor neo).
2. Remove the zeros from the end of the file to the end of the code. I left a few 0's behind just incase.
3. Save file.
That's it.
Would you have time to pop a couple of screen shots up please.
win32diskimager v1.0 has a procedure to reduce the size of the file. I have found that sometimes it works and at other times it doesn't
These days I use
https://www.alexpage.de/usb-image-tool/
to make a copy onto a usb stick and run pishrink on a raspberyypi3B or 3B+. Works very well.
Ronnie
https://www.alexpage.de/usb-image-tool/