loop device in WSL
Posted: Sat Dec 28, 2019 3:38 am
Hi,
For my os development, I was able to set up dev env. in WSL - i.e. cross compiler, qemu etc. But I then realized that loop devices are not supported on WSL.
[ so far I have been using VM running ubuntu on windows 10 ordirectly boot to ubuntu OS ]
I need loop device to mount disk image files that I create using 'dd' command. I then partition the same using kpartx and also format these partitions in fat32/ext, then copy required os binary files onto mounted disk image and run qemu against these disk image files. In this, the part that is automated in a script is to mount the disk image file, copy os binaries and unmount disk image file
However, loop device isn't supported on WSL nor kpartx/related commands work on WSL
Is there any way to make this work on WSL or any alternatives to above (that can be automated through a script that can be run from within WSL) while I continue to use linux subsystem on windows 10
Thanks
Prajwal
For my os development, I was able to set up dev env. in WSL - i.e. cross compiler, qemu etc. But I then realized that loop devices are not supported on WSL.
[ so far I have been using VM running ubuntu on windows 10 ordirectly boot to ubuntu OS ]
I need loop device to mount disk image files that I create using 'dd' command. I then partition the same using kpartx and also format these partitions in fat32/ext, then copy required os binary files onto mounted disk image and run qemu against these disk image files. In this, the part that is automated in a script is to mount the disk image file, copy os binaries and unmount disk image file
However, loop device isn't supported on WSL nor kpartx/related commands work on WSL
Is there any way to make this work on WSL or any alternatives to above (that can be automated through a script that can be run from within WSL) while I continue to use linux subsystem on windows 10
Thanks
Prajwal