On Tue, May 22, 2012 at 11:19:40PM +0800, 马磊 wrote:
BTW, another problem about mount:
[malei@xen-test2 ~]$ guestfish --rw -a d.img -m /dev/vda1:/:utf8
libguestfs: error: mount_options: you must mount something on / first
guestfish: '/dev/vda1' could not be mounted. Did you mean one of these?
/dev/vda1 (vfat)
/dev/vda2 (ntfs)
/dev/vda3 (ntfs)
/dev/vda4 (unknown)
/dev/vda5 (vfat)
/dev/vda6 (vfat)
/dev/vda7 (ntfs)
I'm guessing that the error message is wrong. It probably means
that the "utf8" mount option isn't recognized.
Compare:
$ guestfish --ro -a /dev/vg_pin/F16x64 -m /dev/vda2:/
Welcome to guestfish, the libguestfs filesystem interactive shell for
editing virtual machine filesystems.
Type: 'help' for help on commands
'man' to read the manual
'quit' to quit the shell
<fs> exit
with this:
$ guestfish --ro -a /dev/vg_pin/F16x64 -m /dev/vda2:/:blahblah
libguestfs: error: mount_options: /dev/vda2 on /: mount: wrong fs type, bad option, bad
superblock on /dev/vda2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
guestfish: '/dev/vda2' could not be mounted. Did you mean one of these?
/dev/sda1 (unknown)
/dev/sda2 (ext4)
/dev/vg_f16x64/lv_root (ext4)
/dev/vg_f16x64/lv_swap (swap)
I've filed a bug:
https://bugzilla.redhat.com/show_bug.cgi?id=824043
(Sixth bug filed today, it must be some sort of record!)
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v