[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Mounting *.img file



Try the following if you haven't already -

file -s /vm/vm01.img

see if that gives you your startsector.

I'm doing this from my phone so forgive misspellings and no formatting




On Sat, Apr 14, 2012 at 2:15 PM, Scott Meyers <scottmeyers@xxxxxxxx> wrote:
> I am trying to figure out the offest sector for vm01.img2 partition. I tried
> many possible ways, for example (1020 *512) , but in vain. I just can't hit
> the right offest sector to mount vm01.img2 partition. Any help is greatly
> appreciated.
>
> BTW, I am using xen-3.0.3-135.el5_8.2. The vm01.img file was created using
> virt-install command. The command I am using to mount the partition in that
> img file is: mount -o loop,offset=130048 -t ext3 /vm/vm01.img /mnt/xenimg
>
> #fdisk -l /vm/vm01.img
>          vice Boot      Start         End      Blocks   Id  System
> /vm/vm01.img1   *           1          64      514048+  83  Linux
> /vm/vm01.img2              65        1020     7679070   83  Linux
> /vm/vm01.img3            1021        1657     5116702+  83  Linux
>
> Partition 3 has different physical/logical endings:
>      phys=(1023, 254, 63) logical=(1656, 254, 63)
> /vm/vm01.img4        1658        3916    18145417+   5  Extended
>
> Partition 4 has different physical/logical beginnings (non-Linux?):
>      phys=(1023, 254, 63) logical=(1657, 0, 1)
>
> Partition 4 has different physical/logical endings:
>      phys=(1023, 254, 63) logical=(3915, 254, 63)
> /vm/vm01.img5         1658        1784     1020096   83  Linux
> /vm/vm01.img6         1785        1848      514048+  82  Linux swap /
> Solaris
> /vm/vm01.img7         1849        3916    16611178+  83  Linux
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxx
> http://lists.xen.org/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.