How to mount VMs logical volume from dom0?

I have a VM that is somehow messed up. Can’t even start terminal. I’m trying to backup some files from that VM (or rather it’s disk/logical volume). I would hope it’s possible to mount the logical volume from dom0, but can’t figure out how to do it.

I got the logical volume path from lvdisplay and then tried:

$ sudo mount /dev/qubes_dom0/vm-crowphale-private-snap crow-mount
mount: wrong fs type, bad option, bad superblock on /dev/mapper/qubes_dom0-vm--crowphale--private--snap,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

What am I doing wrong?

This is how you mount the LVM image

Thank you. That’s exactly what I’m looking for, but I’m running into the same issue. At step 4:

$ mount /dev/xvdi /mnt/
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/xvdi, missing codepage or helper program, or other error.

Any ideas what is the problem?

Note: I changed xvdiX to xvdi because that’s the only one that exists on my fs, and I’m confident it’s the logical volume I’m looking for since it wasn’t there before I attached it to this dvm.

You could try running TestDisk / PhotoRec on /dev/xvdi to see if it can recover some data.

1 Like