我刚刚把笔记本电脑里的 Windows10升级到了 Redstone 1。因此,我对 Linux 子系统进行了测试(也就是。WSL、 LXSS 或 Windows 上的 Bash)。基本上,一切都很好,但有一个问题,即 WSL 的 RootFS 位于 %LocalAppData%路径(例如 C:\Users\xyz\AppData\Local) ,这也是我的 Windows 操作系统所在的位置。它消耗了我笔记本电脑中大量的 SSD 硬盘空间,我希望我可以把它移动到我的外部硬盘上。
There is an another problem. Since the other hard drive partitions are mounted as DriveFS, it does not support some Linux filesystem features like chmod, and some of my Linux project build scripts only works in VoIFS, which only located in / and /home.
因此,我尝试将整个 WSL RootFS 移动到另一个硬盘驱动器上。首先,我尝试为 C:\Users\xyz\AppData\Local\lxss制作一个 NTFS 连接(硬链接)。我已经完全卸载了 WSL,并将 RootFS 的 mklink运行到另一个硬盘驱动器,当我再次重新安装 WSL 时,将运行 它无法创建新用户,并报告代码为0x80070003的错误。
Then I searched around, and I got this: 移动 Linux 文件系统-问题 # 449. 似乎 WSL RootFS 的移动和硬链接只能在 Windows10 Build 14388之前工作,它不能在 Windows10 Build 14393 RTM 中工作。 The only way is moving the whole %LocalAppData% to the external hard drive, but I cannot do that since I'm a laptop user and I can't bring an external hard drive everywhere!
所以我想问一下,有没有其他方法可以将 WSL 移出我的系统分区?如果我做不到 我可以在其他地方创建一个额外的 VoIFS 工作目录并编译我的东西吗?
谢谢,还有问候, 杰克逊