make filesystem on WSL2

Journey Ren 1 Reputation point
2022-01-21T08:38:27.54+00:00

I am managing a Linux file system via WSL 2, and the version is ubuntu 20.04
I partitioned /dev/sda in the system disk list and got /dev/sda1, btw, /dev/sda is a virtual disk,
but I formatted it with mkfs.xfs /dev/sda1,
I failed with "mkfs.xfs: cannot open /dev/sda1: Device or resource busy"
later I tried with loop partition and I worked.
I cannot find a workable solution. Could you please help me?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,472 questions
0 comments No comments
{count} votes