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

Re: [Xen-users] Root fs image crated by Yast Xen



Hi, Noniko.

I fitted same thing.ÂWhen I was verifying Xen on SLES10 Beta.

/var/lib/xen/images/vm1/hda. Wonderful.

It is whole disk image.

I tried to loopback mount in order to see what is in this image file.
But I can't. The error message is:

mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or other error

This error is correct. Because hda is not filesystem.
Please try following step.

1. Mapping hda to /dev/loop0.
# losetupÂ/dev/loop0Â/var/lib/xen/images/vm1/hda

2.ÂLook at geometric information on /dev/loop0.
# fdisk -l -u /dev/loop0
Disk /dev/hda: 30.7 GB, 30738677760 bytes
255 heads, 63 sectors/track, 3737 cylinders, total 60036480 sectors
Units = sectors of 1 * 512 = 512 bytes

 Device Boot   Start   Â End   Blocks Id System
/dev/loop0p1Â Â ÂÂ ÂÂ Â63Â Â Â 208844Â Â Â 104391ÂÂ 83Â Linux
/dev/loop0p2 Â ÂÂ Â208845Â Â 60034904Â Â 29913030ÂÂ 83Â Linux

3. Calculate the offset.Âoffset = Start x Unit size
# offset=((63*512))

4. Mapping hda1 in /dev/loop0
# losetup -o $offset /dev/loop1 /dev/loop1

5. Mount /dev/loop1 to /mnt/vm1_hda1
# mkdir /mnt/vm1_hda1
# mount /dev/loop1 /mnt/vm1_hda1

That's all.

.::.:... .::....: .::...:: .::.:.:: .::..:.: .:::..:.
TAIRA HajimeÂ<htaira@xxxxxxxxx>
ÂÂ ÂÂ ÂÂ ÂÂ Âweb: http://pantora.net/

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

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