Access the file system of a Xen image_其他_操作系统_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 操作系统 > 其他 > Access the file system of a Xen image

Access the file system of a Xen image

 2010/9/19 23:57:09  yaojingguo  http://yaojingguo.javaeye.com  我要评论(0)
  • 摘要:IhavetriedthissolutiononUbuntu10.04.ttylinux.imgisextractedfromhttp://dev.opennebula.org/attachments/download/170/ttylinux.tar.gz.$sudofdisk-luttylinux.imgYoumustsetcylinders.Youcandothisfromtheextrafunctionsmenu.Diskttylinux.img:0MB,0bytes16heads
  • 标签:Access file system Xen image
I have tried this solution on Ubuntu 10.04. ttylinux.img is extracted from http://dev.opennebula.org/attachments/download/170/ttylinux.tar.gz.

$sudo fdisk -lu ttylinux.img

You must set cylinders.
You can do this from the extra functions menu.

Disk ttylinux.img: 0 MB, 0 bytes
16 heads, 63 sectors/track, 0 cylinders, total 0 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0cbd62fa

       Device Boot      Start         End      Blocks   Id  System
ttylinux.img1              63       81647       40792+  83  Linux


$sudo mount -o loop,offset=32256 ttylinux.img /mnt
offset is 63 * 512. It must be specified. Otherwise, mount complains:

mount: you must specify the filesystem type

Refer: http://timesinker.blogspot.com/2009/04/mounting-xen-xm-xmfile-disk-image-file.html, http://linuxwave.blogspot.com/2008/02/accessing-data-on-xen-lvm-guest-image.html
上一篇: Usage of Linux df command 下一篇: 没有下一篇了!
发表评论
用户名: 匿名