PiShrink | Make your pi images
kandi X-RAY | PiShrink Summary
kandi X-RAY | PiShrink Summary
PiShrink is a bash script that automatically shrink a pi image that will then resize to the max size of the SD card on boot. This will make putting the image back onto the SD card faster and the shrunk images will compress better. In addition the shrunk image can be compressed with gzip and xz to create an even smaller image. Parallel compression of the image using multiple cores is supported.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PiShrink
PiShrink Key Features
PiShrink Examples and Code Snippets
Community Discussions
Trending Discussions on PiShrink
QUESTION
First of all I am using Raspberry Pi 4 Model B with Raspberry Pi OS.
I've made an image of Raspbian with some functionalities, later I've cloned it using Win32DiskImager and finally I compressed this image using this script: https://raw.githubusercontent.com/Drewsif/PiShrink/master/pishrink.sh.
The last step I did was flashing the compressed .img to the SD using BalenaEtcher.
Before cloning and compressing the image I put it in read-only mode.
I have realized that the image with the read-only ON and being compressed => does NOT work.
But if read-only mode is OFF and I compress the image => IT WORKS FINE.
When introducing the SD that has the read-only mode ON, it stays in the boot screen and prints this:
I think that compressing the image with PishRink script removes something that it don't have to remove...
Has it happened to someone or have someone suffered the same error that I have shown in the previous image? Any idea what it can be?
...ANSWER
Answered 2020-Dec-05 at 11:31The problem was the PishRink script that was removing something that it doesn't have to remove...
I used a new script:
*** THIS SCRIPT ONLY WORKS ON RASPBIAN IMAGES. ***
To use this script, copy the code to a file called 'resizeimage.pl'.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install PiShrink
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page