Skip to content

Instantly share code, notes, and snippets.

@martinhj
Last active October 16, 2019 11:44
Show Gist options
  • Save martinhj/07ba87874b0f51e7fd322852865d7353 to your computer and use it in GitHub Desktop.
Save martinhj/07ba87874b0f51e7fd322852865d7353 to your computer and use it in GitHub Desktop.
mount disk images: scan image for partition and set up loop independent devices for each
# Linux (when in need for read/write on ext*
losetup -Pf --show imageFilePath.img
mount /dev/loop0p1 /mnt/
# Mac
hdiutil attach -nomount imageFilePath.img
sudo diskutil mountDisk /dev/disk2
# don't need this anymore... sudo mount -t msdos /dev/disk2s1 /Volumes/somethingsomething
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment