Trying to copy Raspberry Pi OS to image using dd
.
$diskutil list /dev/disk2
/dev/disk2 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *15.9 GB disk2
1: Windows_FAT_32 boot 268.4 MB disk2s1
2: Linux 2.7 GB disk2s2
Running sudo dd bs=1m if=/dev/rdisk2 of=/Users/sunknudsen/tmp/pi-clean.img
works but includes unallocated space which is inefficient.