Created
December 13, 2019 16:28
-
-
Save richardnfag/5987765a08bdc379a291ada421be9e65 to your computer and use it in GitHub Desktop.
Mount partitions in IMG file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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