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!

You have a feedback?

This site uses Akismet to reduce spam. Learn how your comment data is processed.