Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2796

ext4.vhdx corrupted after mounting with guestmount

$
0
0

I'm running windows 11 and Ubuntu 22.04.2 LTS (Jammy Jellyfish) dual boot,yesterday i tried to mount the WSL2 disk image ext4.vhdx from ubuntu using guestmount, this is the command i used:

sudo guestmount --add /path/to/ext4.vhdx -i --rw /mnt/myubuntu

at first it worked with no problem, but today when i wanted to do it again and access the WSL2 files i got this error:

guestmount: access: /mnt/asus/Users/root1/Documents/WSL/Ubuntu/ext4.vhdx: Input/output error

even when i just try to run ls against the file:

ls: cannot access 'ext4.vhdx': Input/output error

when i try to ls ext4.vhdx

also when i boot from windows i get a notification saying that i have some files corrupted on myC: drive and when i run WSL it says that the ext4.vhdx is corrupted and unreadable, I run the check on C: drive then reboot, but no luck, also running chkdsk /f C: gives an error saying the volume is in use by another proccess.

is there a way to recover the disk image or at least some file inside it?

Thanks in advance


Viewing all articles
Browse latest Browse all 2796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>