WSL启用systemd和挂载目录

更新于 2026-03-20

启用systemd

/etc/wsl.conf增加

[boot]
systemd=true

禁用自动挂载

/etc/wsl.conf增加

[automount]
enabled=false

挂载目录

mkdir /home/xxxx

#可放在.bashrc启动时自动挂载
mount -t drvfs F:/xxx/uuu/xxx /home/xxxx
鲁ICP备2026005385号-1