I am trying to mount a KVM-qemu disk image with this command: sudo mount -o loop,offset=32256 centos6.img /mnt/centos6. But it shows this error: you must specify filesystem type. As I have more partitions in my disk image I tried this solution. But that too gives same error. Here is the output of fdisk -ul centos6.img:Disk centos6.img: 0 MB, 0 bytes255 heads, 63 sectors/track, 0 cylinders, total 0 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x0001da69      Device Boot      Start         End      Blocks   Id  Systemcentos6.img1   *        2048     1026047      512000   83  LinuxPartition 1 does not end on cylinder boundary.centos6.img2         1026048    20971519     9972736   8e  Linux LVMPartition 2 has different physical/logical endings:     phys=(1023, 254, 63) logical=(1305, 106, 17)
Mouting a kvm qemu disk image with multiple partitions
mount;virtualization;kvm;qemu
This worked for me:kpartex -av cento.imgAnd mounting the loop device created in /dev/mapper:mount /dev/mapper/loop0p1 /mnt/destination