Skip to content

Instantly share code, notes, and snippets.

@Rongger
Created December 6, 2022 08:46
Show Gist options
  • Save Rongger/59f026382ff12e2611aec1e77bd9ac4d to your computer and use it in GitHub Desktop.
Save Rongger/59f026382ff12e2611aec1e77bd9ac4d to your computer and use it in GitHub Desktop.

使用 LxRunOffline 迁移 wsl2 磁盘踩坑记录

执行 .\LxRunOffline move -n Ubuntu-22.04 -d D:\wsl2 时报错

[ERROR] Couldn't set the case sensitive attribute of the directory "\\?\D:\wsl\".
Reason: Indicates that the directory trying to be deleted is not empty.

类似 issue:DDoSolitary/LxRunOffline#150

解决办法:下载另一个构建版本:https://github.com/Andy1208-lee/LxRunOffline

重新 move 一遍,成功迁移到 D 盘,但无法启动 wsl,挂载报错

Error code: Wsl/Service/CreateInstance/MountVhd/E_ACCESSDENIED

解决办法:查看对应 .vhdx 文件属性的安全选项,为一般用户添加所有权限即可

参考:https://lowreal.net/2022/11/01/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment