3

wsl挂载移动硬盘和u盘

 1 year ago
source link: https://zhangyiming748.github.io/post/wsl_mount/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

wsl挂载移动硬盘和u盘

2023-07-21 Windows

WSL比起linux挂载硬盘简单一些。而且windows本身自己的硬盘位ntfs格式,所以移动硬盘感觉挂载要比单纯的linu下ntfs挂载更加稳定一些。个人感觉而已....无法验证。

假设你的移动硬盘在windows下显示为 G:\

  1. 新建文件夹
sudo mkdir /mnt/g
sudo mount -t drvfs G: /mnt/g

进入/mnt/g即可与windows下一摸一样。

  1. 弹出移动硬盘,这样才能在windows下正常弹出,否则是会一直占用的。
sudo umount /mnt/g  

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK