windows子系统wsl/wsl2挂载移动硬盘/u盘

先确定要挂载的硬盘在win下的盘符,例如我的盘符为G:
建一个挂载目录:
mkdir /mnt/g

然后挂载命令为:
mount -t drvfs G: /mnt/g

取消挂载:
umount /mnt/g

发表评论