I'm not able to mount Centos Image

in

Hello,

First of all I'd like to thank you for the work and effort that you've made to make these images available to all of us.

My problem is that I'm trying to mount a centos image (without starting the DomU) , which I downloaded from here, so that I'm able to modify some files.

Almost every where I find that the method is the one described in this page:

http://linuxwave.blogspot.com/2008/02/accessing-data-on-xen-lvm-guest-im...

Unfortunately, this method doesn't work with images downloaded from here, although it does work on other images that I created myself (before I knew about Stacklet, using dd, virt-install, etc.)

When I try to fdisk -l the image it says that in doesn't have a valid partition table, kpartx won't list or add anything, etc.

Could you please shed some light on this for me?

Thanks,

Javier D.

For the Xen 3 images, the mount command is simply:

mount -o loop centos.5-4.x86.img /mnt/loop

Of course the actual image file and mount directory can be changed. The Xen 3 images are ext3 vbd's. and do not require an offset in the mount command.

For the qemu images an actual offset is needed:
mount -o loop,offset=32256 ...

The given offset should work for all stacklet images.

For vmdk images, you need to mount them with the vmware tools which are not distributed with the free player unfortunately. Or convert it back to a qemu raw using the qemu-img tool


© 2010 Stacklet LLC - Privacy