That sounds interesting. Paul, could you describe the whole process? Thanks in advance!Paul Hutch wrote: ↑Fri Mar 06, 2020 9:03 pmI use basically the same process as you listed except I avoid moving the files and cards around by doing it all on a spare Pi running desktop Raspbian.
The spare Pi has a uSD card reader and extra USB storage for the files, and I use dd to do the read/write and 7Zip for the final compression.
Thank you! This approach can really save time by eliminating the time for transferring files back and forth. I believe instead of the second Pi the same one could be used but with different SD card, right?Paul Hutch wrote: ↑Fri Mar 06, 2020 9:44 pmI plagiarized your list as a starting point
- Use 8GB SD card, install all required software on that card on Pi
- Remove card from Pi and insert it into my desktop Pi's card reader
- Use dd to create an ‘img’ file on the USB storage (HDD or thumb drive depending on which extra Pi I'm using)
- Run ‘pishrink’ on the created image
- Compress the shrunken file using 7Zip.
- Copy file to Internet
Compressing the image using the bzip2 compression algorithm is more efficient than using zip (with DEFLATE compression). You can compress a file with the bzip2 compression algorithm using the 7-Zip compression utility. Make sure to choose bzip2 in the interface.
Thank you for advice. Though that assumes that everyone who will use that compressed disk image should also install 7-zip.ConfuSomu wrote: ↑Sun Mar 08, 2020 5:33 pmCompressing the image using the bzip2 compression algorithm is more efficient than using zip (with DEFLATE compression). You can compress a file with the bzip2 compression algorithm using the 7-Zip compression utility. Make sure to choose bzip2 in the interface.
Hope that helps.
I suspect you didn't see my last post. Thank you anyway.Zwartoog wrote: ↑Mon Mar 09, 2020 11:26 amI am not sure why you keep on moving back-and-forth between Windows and the Pi.
I assume this is a process you do yourself to prepare a suitable image to prepare for the generic audience?
I would do something like this:
- by a USB-SD card reader
- prepare your distribution on SD card 1, i.e. SDPEPPY
- now boot your Pi with SD card 2, i.e. SDRASPBIAN
- insert SDPEPPY in USB-SD
- use dd to create an image from SDPEPPY, write this to SDRASPBIAN (or a generic USB-key, or network storage)
- use phishrink/zip/whatever you need on this image
Aside from swapping the SD cards to boot in Raspbian, you can script all the other steps.