[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] Mount multiple logical disks (Windows guest)

On Tue, Nov 10, 2015 at 12:16:40PM +0300, 1 1 wrote:
> Hi, everyone! I faced one problem: I want to mount 2 logical disks
> (C and D) of my Windows 7 at the same time using libguestfs (to find
> file on both this disks), but I couldn't find any references in your
> manual. Can you help me?

Something like this should work:

guestfish -a win.img --ro -i
><fs> mkmountpoint /c
><fs> mkmountpoint /d
><fs> mount /dev/sda2 /c
><fs> mount /dev/sda3 /d
><fs> ll /c

Or you can try this script:


With a bit of effort the script could be modified to read the Windows
drive names from libguestfs
and create those mountpoints instead.


Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]