mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2024-12-28 00:39:30 -05:00
Create mount-hvm-disk.md
How to mount a HVM disk. Not directly related to Qubes OS ( related to LVM only) But useful to know
This commit is contained in:
parent
b80e7d95e2
commit
e844d081db
35
debugging/mount-hvm-disk.md
Normal file
35
debugging/mount-hvm-disk.md
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
---
|
||||||
|
layout: doc
|
||||||
|
title: Mount HVM disk
|
||||||
|
permalink: /doc/mount-hvm-disk/
|
||||||
|
---
|
||||||
|
|
||||||
|
# How to mount HVM disk
|
||||||
|
|
||||||
|
You want to read your HVM disk (ex: you did some errors and can't start the HVM ).
|
||||||
|
|
||||||
|
First, read the partition table:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo parted /dev/YOUR_VG/YOUR_VM unit B print
|
||||||
|
```
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$:sudo parted /dev/windows-vg/vg-game-root unit B print
|
||||||
|
Model: Linux device-mapper (thin) (dm)
|
||||||
|
Disk /dev/dm-138: 314572800000B
|
||||||
|
Sector size(logical/physical): 512B/512B
|
||||||
|
Partition Table: msdos
|
||||||
|
Disk Flags:
|
||||||
|
Number Start End Size Type File system Flags
|
||||||
|
1 1048576B 105906175B 104857600B primary ntfs boot
|
||||||
|
2 105906176B 314571751423B 314465845248B primary ntfs
|
||||||
|
```
|
||||||
|
|
||||||
|
Then mount the partition you want:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo mount -o loop,offset=105906176 -t ntfs /dev/windows-vg/vg-game-root /mnt/
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user