mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2025-12-10 05:30:36 -05:00
Rename all md files to rst
This is plain rename without changing content, to help git track files history. Do not touch files that are going to be removed during conversion. Thanks @parulin for the idea!
This commit is contained in:
parent
e3db139fe3
commit
e14921b8a3
184 changed files with 0 additions and 0 deletions
54
developer/debugging/mount-lvm-image.rst
Normal file
54
developer/debugging/mount-lvm-image.rst
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
---
|
||||
lang: en
|
||||
layout: doc
|
||||
permalink: /doc/mount-lvm-image/
|
||||
ref: 46
|
||||
title: 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:
|
||||
|
||||
```bash
|
||||
# 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
|
||||
|
||||
```bash
|
||||
[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:
|
||||
|
||||
```bash
|
||||
[user@dom0]$ qvm-block attach NEWLY_CREATED_DISPVM dom0:$dev
|
||||
```
|
||||
|
||||
4: Mount the partition you want to, and do what you want with it
|
||||
|
||||
```bash
|
||||
[user@dispXXXX]$ mount /dev/xvdiX /mnt/
|
||||
```
|
||||
|
||||
5: Umount and kill the VM
|
||||
|
||||
```bash
|
||||
[user@dispXXXX]$ umount /mnt/
|
||||
```
|
||||
|
||||
6: Remove the image from qubesdb
|
||||
|
||||
```bash
|
||||
[user@dom0]$ qubesdb-rm /qubes-block-devices/$dev/
|
||||
```
|
||||
|
||||
# References
|
||||
|
||||
Please consult this issue's [comment](https://github.com/QubesOS/qubes-issues/issues/4687#issuecomment-451626625).
|
||||
Loading…
Add table
Add a link
Reference in a new issue