recreate FreeBSD 12 ARM image

Jamie Landeg-Jones jamie at catflap.org
Mon Jul 15 09:15:56 UTC 2019


Stefan Parvu <sparvu at kronometrix.org> wrote:

> Suppose I have installed FreeBSD 12 on a 32GB microSD under RBPI3B+ and I have
> configure it as I want, add my own software and now I want to re-create the image as 
> small as possible say as the original. Is it possible to do something like this ? Anyone
> any advices, tips how can you do this ? 

Do you mean make a snapshot copy of the card so you can distribute it elsewhere,
but with the copy of the (largely empty) disk not using the full 32GB?

I.E. Stick the card into another system, don't mount it, but do:

dd if=/dev/DEVICE-NAME bs=1m | gzip -c > img.gz

This will copy the disk image, and compress it with gzip before saving it
to the file.


More information about the freebsd-arm mailing list