PiShrink | Based on the original source Drewsif/PiShrink | Computer Vision library
kandi X-RAY | PiShrink Summary
kandi X-RAY | PiShrink Summary
Based on the original source Drewsif/PiShrink. 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. If you specify the newimagefile.img parameter, the script will make a copy of imagefile.img and work off that. You will need enough space to make a full copy of the image to use that option.
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