Skip to content

Instantly share code, notes, and snippets.

@acdimalev
Created April 18, 2013 14:46
Show Gist options
  • Save acdimalev/5413305 to your computer and use it in GitHub Desktop.
Save acdimalev/5413305 to your computer and use it in GitHub Desktop.
dealing with disk images
# losetup --show -f /path/to/disk-image
/dev/loop0
# partx -a /dev/loop0
# ls /dev/loop0*
/dev/loop0 /dev/loop0p4
# partx -d /dev/loop0
partx: /dev/loop0: error deleting partitions 1-3
# losetup -d /dev/loop0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment