cat >/mnt/c/Users/sakura/.wslconfig <<EOF # Settings apply across all Linux distros running on WSL 2 [wsl2] # Limits VM memory to use no more than 8 GB, this can be set as whole numbers using GB or MB memory=8GB # Sets the VM to use two virtual processors processors=8 # Sets additional kernel parameters, in this case enabling older Linux base images such as Centos 6 kernelCommandLine = vsyscall=emulate # Enable network mirror networkingMode=mirrored dnsTunneling=true firewall=true autoProxy=true [experimental] autoMemoryReclaim=gradual sparseVhd=true hostAddressLoopback=true EOF
Mount and Unmount USB drive
$ sudomkdir /mnt/f $ sudo mount -t drvfs F: /mnt/f
$ sudo umount /mnt/f [sudo] password for sakura: umount: /mnt/f: target is busy
$ lsof /mnt/f COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME bash 183 sakura cwd DIR 0,78 512 2 /mnt/f lsof 395 sakura cwd DIR 0,78 512 2 /mnt/f lsof 396 sakura cwd DIR 0,78 512 2 /mnt/f