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)
|