Try
Code:
mkdir /vdisk
mount -o loop -t ext4 /media/media/root.disk /vdisk
If above failed than you need to get offset and mount it with the same:
Code:
fdisk -ul /media/media/root.disk
Look out for sector number. If there are more partition you need to calculate offset and than mount it as follows:
Code:
mount -o loop,offset=XYZ -t ext4 /media/media/root.disk /vdisk
XYZ is offset and calculated as n * 512. Consider the follwoing example:
Code:
fdisk -ul image.img
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf0000000
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 31999999 15998976 82 Linux swap / Solaris
/dev/sda2 32002046 976771071 472384513 5 Extended
/dev/sda5 32002048 976771071 472384512 83 Linux
In this case 2048 is starting offsent for /dev/sda1 and 32002048 is for /dev/sda5 so to mount /dev/sda5 you calculate it as 32002048 * 512 = 16385048576 and mount it as follows:
Code:
mount -o loop,offset=16385048576 -t ext4 /media/media/root.disk /vdisk