vdsm/virtual-dsm

mounting qcow2 file in host-system

Closed this issue · 1 comments

Operating system

24.04

Description

Hi,

i have stopped the virtual dsm docker container to mount the qcow2 file in hostsystem:

root@bla~# qemu-nbd --connect=/dev/nbd0 /home/virtual-dsm/data.qcow2
root@bla:~# mount -t btrfs /dev/nbd0p1 /mnt
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/nbd0p1, missing codepage or helper program, or other error.

How can i mount it? Ihvae installed the qemu-utils.

Best Regards,
Mitch

Docker compose

Docker log

Screenshots (optional)

No response

Ubuntu cannot read the BTRFS filesystem produced by Synology. There are some tools (like DiskGenius for Windows) that are able to read these images, but the standard Linux mount command cannot.

I think Synology uses some custom implementation of the partition table or some other non-standard BTRFS features, but I don't understand their decision because it complicates recovery a lot.