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

How do i mount a raw .VHDX file into WSL2?

$
0
0

I want to mount a raw made with New-VHD -Path "H:\comfyui\ComfyUI.vhdx" -SizeBytes 1000GB -Dynamic vhdx disk into WSL2 (ubuntu-22.04), i tried:how to mount .vhdx image in lubuntu(example 2 raised that error too.)but i got this error:

/mnt/h/comfyui$ sudo guestmount --add ComfyUI.vhdx -i --rw /mnt/ComfyUIlibguestfs: error: /usr/bin/supermin exited with error status 1.To see full error messages you may need to enable debugging.Do:  export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1and run the command again.  For further information, read:  http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfsYou can also run 'libguestfs-test-tool' and post the *complete* outputinto a bug report or message to the libguestfs mailing list.

So that didn't work. I also tried just mounting it with: wsl --mount "H:\comfyui\ComfyUI.vhdx" --type ext4 and that didn't work either.I also do not know how to format to ext4 from windows, so I don't know what I though it would work. and -type raw doesn't work either.I also ask chatgpt for help and after some different iteration of the wsl --mountI am not sure if it matter but i have a docker desktop and that can mount it's stuff:Docker off:

sda    8:0    0 388.4M  1 disksdb    8:16   0     8G  0 disk [SWAP]sdc    8:32   0     1T  0 disk /mnt/wslg/distro

Docker on:

loop0   7:0    0 531.9M  1 loop /mnt/wsl/docker-desktop/cli-toolsloop1   7:1    0   625M  1 loopsda     8:0    0 388.4M  1 disksdb     8:16   0     8G  0 disk [SWAP]sdc     8:32   0     1T  0 disk /mnt/wslg/distro                                /sdd     8:48   0     1T  0 disk /mnt/wsl/docker-desktop/docker-desktop-user-distrosde     8:64   0     1T  0 disk

If I need to add any log please tell me so! Thanks in advance!


Viewing all articles
Browse latest Browse all 2795

Trending Articles



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