WSL system, mount the mobile hard disk under /mnt

If you want to access your mobile hard disk F in WSL, you need to first check its drive letter and file system in Windows, then create a mount point in WSL, such as /mnt/f, and then use the mount command to Mount it. The specific steps are as follows:

- In Windows, open Explorer, find your external hard drive F, right-click it, select Properties, and view its drive letter and file system, such as F: and NTFS¹.
- In WSL, open a terminal and enter the following command to create a mount point, such as /mnt/f, you can choose another name²³ according to your preference:

```bash
sudo mkdir /mnt/f
```

- Then, enter the following command to mount your mobile hard disk F. You need to replace the corresponding parameters²³ according to your drive letter and file system:

```bash
sudo mount -t drvfs F: /mnt/f
```

- In this way, you can access the contents of your mobile hard disk F through /mnt/f in WSL. You can use Linux commands such as cd, ls, cp to operate it²³.
- If you want to unmount your mobile hard disk F, you need to first enter the following command in WSL to unmount²³:

```bash
sudo umount /mnt/f
```

- You can then safely remove your external hard drive in Windows¹.

Guess you like

Origin blog.csdn.net/u010087338/article/details/134573411