# Recovering a file from linux partition stored on VHDX on Windows 8

When you only need one or two files from a restored Linux VHDX, mounting the disk and browsing it with a read-friendly ext filesystem tool can be much faster than restoring the whole VM.

blog

04 Mar 2015 fr

[Voir les images (2)](#pf-content-image-1-0)

Sometimes a restore request is much smaller than a full disaster recovery scenario. In this case, a client only needed **one deleted file** back from a **Linux virtual machine** running on **Hyper-V**. That changes the recovery strategy completely.

## The practical situation

After restoring the **VHDX** image from backup and mounting it in Windows, the next challenge was simply reading the **Linux** partition so we could copy out the file we needed.

For that we used a small tool called [Ext2Read](https://sourceforge.net/projects/ext2read/). There are other options, but this one was convenient because it was a lightweight executable that did not require a full install on the server.

Once launched, it detected the attached Linux partitions automatically and let us browse the filesystem.

[!\[Ext2Read detecting Linux partitions from a mounted VHDX image on Windows.\](/wp-content/uploads/2016/03/img_56dc6a2299fb7.png)](/wp-content/uploads/2016/03/img_56dc6a2299fb7.png)

From there the process was simple:

1. mount the restored VHDX in Windows
2. open the Linux partition in the filesystem browser
3. navigate to the required path
4. save the file locally

[!\[Browsing the Linux directory structure in Ext2Read before saving recovered files locally.\](/wp-content/uploads/2016/03/img_56dc6a31ee2ae.png)](/wp-content/uploads/2016/03/img_56dc6a31ee2ae.png)

## Why this approach is useful

When the request is "recover a single file," this kind of workflow can save a lot of time:

- no need to boot the full VM
- no need to do a complete restore just to inspect one path
- no need to expose the recovered machine to the network if all you want is a file copy

That makes it a handy middle ground between bare-metal recovery and "sorry, we can only restore the whole machine."

## Projets associés

Projets liés aux tags, catégories et au contenu de cet article.

[Tous les projets](/fr/projets/)

Recherche des projets associés...

[Retour au blog](/blog)

## Articles associés

- [Hyper-V – Incorrect function when trying to move files](/fr/blog/hyper-v-incorrect-function-when-trying-to-move-files/)
- [Altaro VM Backup taking lots of space for CBT backups on system drive](/fr/blog/altaro-vm-backup-taking-lots-of-space-for-cbt-backups-on-system-drive/)
- [Hyper-V – Can’t start Virtual Machine because it’s backing up](/fr/blog/hyper-v-cant-start-virtual-machine-because-its-backing-up/)

<!-- PowerForge markdown artifact sha256:5F2401273856E195F41AC85AB675FC1AF2C7A3ECB0011FFA9E5CF51B9F95CA30 -->
