Skip to content

Instantly share code, notes, and snippets.

@tamsky
Created February 26, 2026 22:26
Show Gist options
  • Select an option

  • Save tamsky/cff1a917d6c9ebf6d696a1de7218c97c to your computer and use it in GitHub Desktop.

Select an option

Save tamsky/cff1a917d6c9ebf6d696a1de7218c97c to your computer and use it in GitHub Desktop.
qcow file conversion example
# via https://github.com/utmapp/UTM/issues/4243#issuecomment-1635028159
# My workaround for access to an ext4 sd card is to create an image of it:
# get the disk with 'diskutil list'
dd if=/dev/disk4 of=~/Desktop/dump.img
# pwd = ~/Desktop
brew install qemu
qemu-img convert -f raw -O qcow2 dump.img dest.qcow2
# then create a new disk for the machine in UTM and import the .qcow2 file.
# I suppose etcher can write it back to a card, but i haven't tried that
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment