Mounting KVM image

kalinix calin.kalinix.cosma at gmail.com
Fri Jun 11 21:43:57 UTC 2010


On Fri, 2010-06-11 at 17:28 -0400, Alex wrote:
>         Hi,
>  
>         Could you please post the layout of you disk, taken with fdisk
>         in expert mode: fdisk systmp-kvm.raw; x (for expert mode) and
>         then p?
>         
> 
> 
> Expert command (m for help): p
> 
> 
> Disk systmp-kvm.raw: 255 heads, 63 sectors, 0 cylinders
> 
> 
> Nr AF  Hd Sec  Cyl  Hd Sec  Cyl     Start      Size ID
>  1 80   0   2    0 254  63    2          1      48194 83
>  2 00   0   1    3 254  63 1023      48195   83827170 85
> Partition 2 has different physical/logical endings:
>      phys=(1023, 254, 63) logical=(5220, 254, 63)
>  3 00   0   0    0   0   0    0          0          0 00
>  4 00   0   0    0   0   0    0          0          0 00
>  5 00   0   2    3 254  63 1023          1   81931499 83
>  6 00 254  63 1023 254  63 1023          1    1895669 82
> 
> 
> Thanks again!
> Best,
> Alex
> 
> 



OK, here's your problem: the offset option for losetup was not properly
calculated.


take a look here:


http://www.campworld.net/thewiki/pmwiki.php/Linux/DiskImagesHOWTO

According to this, in your case the offset should be 1x1024=1024.




You can give it a try.

-- 


Calin

Key fingerprint = 37B8 0DA5 9B2A 8554 FB2B 4145 5DC1 15DD A3EF E857

=================================================
Go slowly to the entertainments of thy friends, but quickly to their
misfortunes. -- Chilo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20100612/0a01be91/attachment.html 


More information about the users mailing list