This page (revision-24) was last changed on 2021-04-21 06:16 by Murray Altheim

This page was created on 2021-03-27 21:00 by Murray Altheim

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
24 2021-04-21 06:16 12 KB Murray Altheim to previous
23 2021-04-21 06:14 12 KB Murray Altheim to previous | to last
22 2021-04-21 06:13 12 KB Murray Altheim to previous | to last
21 2021-04-17 03:16 11 KB Murray Altheim to previous | to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 2 changed 3 lines
This page describes using the "dd" command on Linux to create an exact copy of an SD card, storing it in a disk image ("img") file, then restoring from a disk image file. It also describes using the __BalenaEtcher__ program to clone SD cards, and __pishrink__ to shrink the size of disk image files.
If you're using Linux, a more complete but complex method of creating an image of an SD card is described below, namely using the "shrink" application, which both copies the SD card and shrinks its stored size smaller than the full size of the SD card.
This page describes using the "dd" command on Linux to create an exact copy of an SD card, storing it in an "img" file, then restoring from an "img" file.
At line 91 removed 6 lines
%%information
If you're using Ubuntu Linux as your normal desktop I'd recommend using the __shrink tool__ found at: [https://github.com/qrti/shrink]
which works very well. Instructions for installation can be found at its home page.
__shrink__ automatically opens the GParted Partition Editor, instructs you what to do, and effectively manages the creation and shrinking of the produced copy of your SD card as an *.image file.
%%
At line 98 changed 2 lines
SD card the first time it's used, meaning that the image is always the same size as the SD card. This means
that sometimes when you try to write the image to an SD card it is just ''slightly'' too big and you
SD card the first time it is used. This means that the image is the size of the card, and this means
that sometimes when you try to write the image to the card it is just ''slightly'' too big and you
At line 102 changed 2 lines
The way to fix this is to run a free bash script called "__pishrink__" to shrink the image. This only
runs on Linux or Mac OS (since it has a BSD Unix command line).
The way to fix this is to run a small Python program called "PiShrink" to shrink the image. This only runs on Linux or Mac OS (since it has a BSD Unix command line). You can find a copy of PiShrink
from its github page at: [https://github.com/Drewsif/PiShrink]
At line 105 removed one line
You can find a copy of PiShrink from its github page at: [https://github.com/Drewsif/PiShrink]
At line 107 removed 8 lines
Note that you'll have to make the program executable after downloading it via:
{{{
chmod 744 pishrink.sh
}}}
It has command line help and even has an option for using multiple cores of your computer to speed things
up, if you've installed the "pigz" library (using {{sudo apt install pigz}}).