dd¶
copy an image to an sd card¶
I'm using gdd
here, this requires the homebrew package coreutils
on a mac. dd
might also just work on your system.
copy a raspberry pi os image to an sd card:
backup and restore image¶
get blocksize:
backup disk / sd-card to an image:
restore image to disk/sd-card:
just reverse the above:
write directly to disk from stdin (wget, curl etc.)¶
it's 2022, curl|bash
is fine (👮♂️), so wget | dd
is as well. Common use case: You got a rescue system with a live cd but not enough/configurable storage and want to write a linux iso directly to another disk. Also, Ubuntu doesn't provide an easy to find netboot image anymore so you need at least a 1.3gb download.
wget -O - https://cdimage.ubuntu.com/ubuntu-server/focal/daily-live/current/focal-live-server-amd64.iso | dd of=/dev/sda