TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: D.M. PROCIDA
from: THEO
date: 2018-07-18 19:01:00
subject: Re: Create NDIF disk imag

120f1fcf
PID: SoupGate-Win32 v1.05
D.M. Procida  wrote:
> To be clear, I don't care much about the format of the disk image, just
> about having *a* disk image or file, created from an SD card, that I can
> then re-use.


If you're on a Mac as I think you might be, insert the SD card.

$ diskutil list

look at the list of devices shown, find the one that's the right size,
probably at the bottom of the list. For instance it might be shown as disk3.
If you get this wrong you might nuke your system disc, so be careful.

$ diskutil unmountDisk disk3

if it's still showing in Finder (if you click the eject button in Finder it
might disappear from the list).

$ sudo dd if=/dev/rdisk3 of=your-image.img bs=1m

Will make an image of the filesystem, the same size as your SD card (16GB,
32GB, whatever).  If you want compression, try something like:

$ sudo dd if=/dev/rdisk3 bs=1m | xz > your-image.img.xz


Theo

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.