Mounting Partition from Disk Image

I’ve long known that you can mount a filesystem image using a loop device.  What I did not know until today is that you can mount partitions from a disk image using a loop device!

  1. Insert the loop module specifying the max_part parameter.  (e.g. #modprobe -v loop max_part=63)
  2. Use losetup to setup the loop devices (e.g. # losetup -f /path/to/disk/image.dd)
  3. You will not have block devices for the partitions inside your disk image (/dev/loop0p1, etc).
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s