Skip to content

Instantly share code, notes, and snippets.

@richardnfag
Created December 13, 2019 16:28
Show Gist options
  • Save richardnfag/5987765a08bdc379a291ada421be9e65 to your computer and use it in GitHub Desktop.
Save richardnfag/5987765a08bdc379a291ada421be9e65 to your computer and use it in GitHub Desktop.
Mount partitions in IMG file
# LIST PARTITIONS
fdisk -l image.img
sudo losetup --find --show image.img
sudo partprobe /dev/loop0
sudo mount /dev/loop0p1 /mnt/img1
sudo mount /dev/loop0p2 /mnt/img2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment