Jump to content

Tephea

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Tephea

  1. On 5/20/2021 at 5:15 AM, ghost82 said:

    Let's see if you can mount it, from unraid terminal:

    modprobe nbd max_part=8
    qemu-nbd --connect=/dev/nbd0 /path/to/the/image/test.qcow2

    Create a mount point:

    mkdir /path/to/the/mount/point/

    List the partitions of nbd0:

    fdisk /dev/nbd0 -l

    Mount the partition (in this example is p1):

    mount /dev/nbd0p1 /path/to/the/mount/point/

     

    cd to the mount point and do what you need to do.

    Once finished:

    umount /path/to/the/mount/point/
    qemu-nbd --disconnect /dev/nbd0
    rmmod nbd

     

    This was extremely helpful. I recently had a slowly dying cache drive containing my Home Assistant VM. My "backups" were contained within the VM rather than pulled anywhere else, which in hindsight was as good as no backup. I was able to navigate into the backups and pull them out by following your instructions. I tried Mat W's solution above but with my corrupted cache I can't currently install any VM's and haven't dug for a solution yet.

×
×
  • Create New...