金融类网站建设,安吉哪里做网站好,两学一做专栏网站,英文网站建设官网Win11 将Linux子系统从C盘迁移到其他盘Win11下Linux子系统迁移方法及报错解决1、下载LxRunOffline2、ERROR#xff1a;directory is not empty 报错解决参考链接Win11下Linux子系统迁移方法及报错解决
C盘满了#xff0c;Ubuntu子系统占了100多G怎么办#xff1f;直接将子系…
Win11 将Linux子系统从C盘迁移到其他盘Win11下Linux子系统迁移方法及报错解决1、下载LxRunOffline2、ERRORdirectory is not empty 报错解决参考链接Win11下Linux子系统迁移方法及报错解决
C盘满了Ubuntu子系统占了100多G怎么办直接将子系统转移到其他盘 以下方法亲测有效。
1、下载LxRunOffline
下载链接 https://github.com/DDoSolitary/LxRunOffline/releases 下载后解压在LxRunOffline.exe所在目录下打开命令行
查看WSL信息
LxRunOffline.exe list迁移子系统
LxRunOffline.exe move -n Ubuntu-20.04 -d E:\\Ubuntu-20.04-n: 子系统名称 -d: 目标文件夹路径
2、ERRORdirectory is not empty 报错解决
报错信息
[ERROR] Couldn’t set the case sensitive attribute of the directory “\?\C:\Users\Dong\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu20.04LTS_79rhkp1fndgsc\LocalState”. Reason: Indicates that the directory trying to be deleted is not empty. 处理方法 找到原来子系统路径下的 ext.vhdx文件手动剪切到目标文件夹再运行move指令。
查看子系统位置
LxRunOffline.exe get-dir -n Ubuntu-20.04参考链接
https://github.com/DDoSolitary/LxRunOffline/issues/200