Jump to content
We're Hiring! Full Stack Developer ×

Mount raw IMG (vdisk) in Windows


johnodon

Recommended Posts

John, not sure if this would work with a disk in memory, but this is how I mount my Unraid-VM.img in windows...

 

    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/virtualisation/vm/unraid-vm/unraid-vm.img'/>
      <target dev='hdd' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </disk>

Link to comment

John, not sure if this would work with a disk in memory, but this is how I mount my Unraid-VM.img in windows...

 

    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/virtualisation/vm/unraid-vm/unraid-vm.img'/>
      <target dev='hdd' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </disk>

 

Actually, you just triggered an idea.  Since I want to move some files in the IMG file to the new OE VM, I guess I could just mount it as another disk in the OE VM and use Kodi File Manager to do it.  :)

 

As long as I make sure the existing OE IMG is the first boot device, I think this may work.

 

I'll report back in a few.

 

John

Link to comment

That's kind of what I do, I mount the .img in Windows to easily copy the bzroot and bzimage files to...

 

Only problem is that I don't have a Windows VM.  I was looking for a way to mount the IMG on a physical Windows machine.

 

I'm sure I've done that in the past let me rack my brains....

Link to comment

Same result with Daemon Tools.

Daemon Tools will mount any image file as though it were a DVD.  However it seems you need to also get the Linux file system recognised?  What type of Linux file system is it - you will need to find a corresponding Windows driver to get a Linux file system recognised.

Link to comment

OK..I got it.  I kept trying to add it is a second disk and mount it in OE, however, if I made it IDE like the primary disk (which is required for some reason with OVMF on my system) it kept trying to make it the first boot device.  So, I changed it to SATA and OE mounted it fine:

 

    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/cache/VMs/HTPCFAMILYRM/vdisk1.img'/>
      <backingStore/>
      <target dev='hda' bus='ide'/>
      <boot order='1'/>
      <alias name='ide0-0-0'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/cache/VMs/HTPCFAMILYRM.old2/vdisk1.img'/>
      <backingStore/>
      <target dev='hdb' bus='sata'/>
      <boot order='2'/>
      <alias name='sata0-0-1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </disk>

 

Now when I reinstall Retroarch on this OE VM, I can just move my cofig and metadata from the old image rather than have to go through the whole setup again.  :)

 

John

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...