[arm-allstar] Cloning of SD card with Hamvoip installed.
Doug Crompton
wa3dsp at gmail.com
Fri Jul 5 14:43:30 EDT 2019
Rachid,
No problem with questions.
win32diskimager has no way to partially copy an SD card. So if you have a
16 or 32 meg SD card it will save the entire amount. Then a new card which
is the same size might have some different overhead and if you try to write
the full card it might give you a size error. One answer is to use Linux to
copy it.
You can use a Linux desktop you could use the dd command. Here is an
example.
dd if=/dev/sdx of=whatever_you want_to_call_it.img bs-1M count=4000
So when you plug the SD card into a reader and into the Linux desktop it
will be recognized as a specific device. Plug it in and use the dmesg
command to see where it is assigned. This would be /dev/something Then
use that as the input file (if) in the dd command as shown above to create
the file. You can later write the file using wind32diskimager which would
be the safest way to do it.
This will only save 4G which is all that is used by Allstar on the card no
matter what size it is.
However another approach is the file-backup.sh and file-restore.sh which
works well. You can specify in /usr/local/etc/backup.conf the files you
want to backup. Then after you install a new card you can restore the
original back. These scripts have the option of saving/restoring to/from a
file or USB stick.
BTW if you don't have a linux desktop it is real easy to create one using a
Pi, keyboard, and HDMI monitor. Raspbien runs very nicely and you could
plug in a USB reader with th SD card and write it to a USB stick plugged
into another USB port. It would be slower but would work. The Pi 3B+ makes
a great desktop for the shack and the new Pi 4 would be even better.
*73 Doug*
*WA3DSP*
*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
On Fri, Jul 5, 2019 at 1:25 PM "Rachid Karroo via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:
> Hi all
> I apologize if I ask too many questions. I am on a self-learning curve. I
> normally use MS Windows.
>
> I have used Win32diskimager to make an image of the SD card used with
> Hamvoip. After all the recent issues, I thought I would be better off
> having one or two clone copies instead of having to re-install and
> re-configure. When I try to copy the img on a new SD card, I get No enough
> space error.
>
> I saw a small utility on GitHub at https://github.com/Drewsif/PiShrink
>
> Has anybody used it ? or any other alternative method please ?
>
> Thank you
> 73s
>
> Rachid
> 3B8FP
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
>
More information about the ARM-allstar
mailing list