the 'file' and 'vfs-type' commands returned "data" and empty string,
and "virt-filesystems --all --long -a XXX"  returned :
Name      Type        VFS      Label  MBR  Size        Parent
/dev/sda  filesystem  unknown  -      -    8589901824  -
/dev/sda  device      -        -      -    8589901824  -
 > - You don't have ntfs-3g installed
>  - /dev/sda isn't a filesystem (maybe /dev/sda1?)
>  - The filesystem type really is some unknown new thing.
 
the windows vms are created by vsphere-client or XenCenter using vm-template,
the format of all disks is NTFS.
 
Thanks!

周涛
 
From: Richard W.M. Jones
Date: 2012-09-07 16:16
To: 周涛
CC: libguestfs
Subject: Re: mount device of 'unknow' filesystem type
On Fri, Sep 07, 2012 at 01:04:00PM +0800, 周涛 wrote:
> hi all!
> some windows vm's filesystem type is unknown(/dev/sda: unknown), 
> and 'mount' command leads to: 
> 'libguestfs: error: mount: /dev/sda on / (options: ''): mount: you must specify the filesystem type '
> if i don't know the type, whether i could mount the device?
 
There are lots of possible causes for this:
 
 - You don't have ntfs-3g installed
 
 - /dev/sda isn't a filesystem (maybe /dev/sda1?)
 
 - The filesystem type really is some unknown new thing.
 
(The last one is least likely)
 
Try running the 'file' or 'vfs-type' command on the filesystem, or run
'virt-filesystems --all --long' on the disk and see what it says.
 
Rich.
 
-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw

---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------