<br><br><div class="gmail_quote">On Tue, May 22, 2012 at 7:37 PM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, May 22, 2012 at 06:38:45PM +0800, 马磊 wrote:<br>
> [malei@xen-test2 ~]$ guestfish --rw -a /home/malei/d.img<br>
><br>
> Welcome to guestfish, the libguestfs filesystem interactive shell for<br>
> editing virtual machine filesystems.<br>
><br>
> Type: 'help' for help on commands<br>
>       'man' to read the manual<br>
>       'quit' to quit the shell<br>
><br>
> ><fs> mount-options '' /dev/vda1 /<br>
> libguestfs: error: mount_options: call launch before using this function<br>
> (in guestfish, don't forget to use the 'run' command)<br>
> ><fs> launch<br>
> ><fs> mount-options '' /dev/vda1 /<br>
> ><fs> ls /<br>
> ?? ????.txt<br>
> ?? ????.wav<br>
> ?? WinRAR ZIP ????.zip<br>
> root1<br>
> root2<br>
> ><fs><br>
> ===============================================<br>
> Does it have something to do with the LANG environment variable or the disk<br>
> img which is not bootable?<br>
<br>
</div>I guess this is a FAT or VFAT image?  (Try the 'list-filesystems' command).<br>
<br>
There are several bugs, they even prevent me from creating such an<br>
image to start with :-(  I have filed these:<br>
<br>
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=823885" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=823885</a><br>
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=823887" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=823887</a><br>
<br>
How large is 'd.img'?  Would it be possible for me to get a copy of<br>
it, or of a similar image that fails in the same way?<br>
<div class="im"><br>
Rich.<br>
<br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" target="_blank">http://people.redhat.com/~rjones</a><br>
</div>virt-p2v converts physical machines to virtual machines.  Boot with a<br>
live CD or over the network (PXE) and turn machines into Xen guests.<br>
<a href="http://et.redhat.com/~rjones/virt-p2v" target="_blank">http://et.redhat.com/~rjones/virt-p2v</a></blockquote><div><br></div><div><br></div><div><br></div><div>     You're right! The partition containg chinese-character-name files is vfat filesystem.</div>
<div><div>[malei@xen-test2 ~]$ guestfish --rw -a /home/malei/d.img</div><div><br></div><div>Welcome to guestfish, the libguestfs filesystem interactive shell for</div><div>editing virtual machine filesystems.</div><div><br>
</div><div>Type: 'help' for help on commands</div><div>      'man' to read the manual</div><div>      'quit' to quit the shell</div><div><br></div><div>><fs> run</div><div>><fs> list_filesystems</div>
<div>/dev/vda1: vfat</div><div>/dev/vda2: ntfs</div><div>/dev/vda3: ntfs</div><div>/dev/vda4: unknown</div><div>/dev/vda5: vfat</div><div>/dev/vda6: vfat</div><div>/dev/vda7: ntfs</div><div>><fs> mount-options /dev/vda2 /</div>
<div>mount-options should have 3 parameter(s)</div><div>type 'help mount-options' for help on mount-options</div><div>><fs> mount-options '' /dev/vda2 /</div><div>><fs> ls /</div><div>System Volume Information</div>
<div>root1</div><div>root2</div><div>新建 WinRAR ZIP 压缩文件.zip</div><div>新建 文本文档.txt</div><div>新建 波形声音.wav</div></div></div><br>