Mounting an image file in Linux

If you need to mount an image file as a disk partition you can follow the following steps. I have followed these to mount a junos space disk image indeed. Here are the steps:

Then try to mount:

It fails right? To get where the sector starts on this image

Sector is 62 from which we calculate offset as 62*512=31744 and partition id is 83. It is linux and   file system type is ext2, now mount!

Here is the partition content!

DISCLAIMER: Views expressed in this blog are my own and do not necessarily reflect those of Juniper Networks

You have a feedback?