[Libguestfs] How to get information about the guest filesystems by libguestfs

Zhang Qian zhq527725 at gmail.com
Wed Aug 5 02:50:20 UTC 2009


Hi,

I am using guestfish to write some files into guest file system of my
KVM domain. As you know, I have to mount guest disk at a position in
the filesystem before I write any files into it , e.g.:
mount     /dev/VolGroup00/LogVol00     /

But the problem is how I can get guest filesystem info without login
guest. Now I have to power on the KVM domain, login the guest,
remember which partition(/dev/VolGroup00/LogVol00) is mounted in root
directory, then power off the domain, execute the above command in
guestfish.

Is there any libguestfs API or guestfish command which can be used to
get information about the guest filesystems? E.g. which partition is
mounted at which directory. It should be very helpful for me.
Thanks!


Regards,
Qian




More information about the Libguestfs mailing list