Write ISO to USB
From a terminal, run diskutil list
to get the target device node (/dev/disk<N>
), convert the image to UDRW, unmount all volumes on the destination disk and and write the image to it:
ISO=Downloads/debian-10.9.0-amd64-netinst.iso
IMG="$ISO.img"
DEST=omitted
hdiutil convert -format UDRW -o "$IMG" "$ISO"
sudo diskutil unmountDisk "$DEST"
pv -beprt $IMG.dmg | sudo dd of="$DEST" bs=1m
Or, without pv
for progress:
sudo dd if="$IMG.dmg" of="$DEST" bs=1m