qubes-doc/developer/debugging/mount-lvm-image.md
Andrew David Wong 6d81f95cc2
Update and reorganize documentation
- Convert "Common Tasks" to "How-to Guides"
  (QubesOS/qubes-issues#6694)
- Make title capitalization consistent across docs
- Fix leftover h1 headings
- Reorganize various pages and topics
- Update permalinks to better match titles
- Create redirects for changed permalinks
- Miscellaneous cleanup

QubesOS/qubes-issues#6701
2021-06-17 05:16:22 -07:00

1.2 KiB

lang layout permalink ref title
en doc /doc/mount-lvm-image/ 46 How to Mount LVM Images

You want to read your LVM image (e.g., there is a problem where you can't start any VMs except dom0).

1: make the image available for qubesdb. From dom0 terminal:

# Example: /dev/qubes_dom0/vm-debian-9-tmp-root
[user@dom0]$ dev=$(basename $(readlink /dev/YOUR_LVM_VG/YOUR_LVM_IMAGE))
[user@dom0]$ qubesdb-write /qubes-block-devices/$dev/desc "YOUR_LVM_IMAGE"

2: Create a new disposable VM

[user@dom0]$ qvm-run -v --dispvm=YOUR_DVM_TEMPLATE --service qubes.StartApp+xterm &

3: Attach the device to your newly created disp VM

From the GUI, or from the command line:

[user@dom0]$ qvm-block attach NEWLY_CREATED_DISPVM dom0:$dev

4: Mount the partition you want to, and do what you want with it

[user@dispXXXX]$ mount /dev/xvdiX /mnt/

5: Umount and kill the VM

[user@dispXXXX]$ umount /mnt/

6: Remove the image from qubesdb

[user@dom0]$ qubesdb-rm /qubes-block-devices/$dev/

References

Please consult this issue's comment.