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

f6ce546b
REPLY:  95ddbf2d
PID: SoupGate-Win32 v1.05
Theo  wrote:

> 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

Thanks, excellent instructions.

I didn't know it wasn't necessary to create the .img file before
starting (which is what I was trying to do).

And, ejecting in the Finder does something more than just unmounting -
if you eject, then the volume won't be available for disk operations. So
it has to be an unmount, either in the Terminal or in Disk Utility.

Daniele

--- 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™.