在我的 Windows 10 命令提示符中,当我需要将驱动器设置为某个网络共享驱动器时,我只使用
net use V: //192.168.xxx.xxx/folder
Run Code Online (Sandbox Code Playgroud)
我在 Windows 10 的 Windows 上的 Ubuntu 上添加了 Bash,我也想从终端访问我的网络驱动器,所以我尝试安装它
sudo mount -t cifs -o username=myusername //192.168.xxx.xxx/folder /mnt/new_folder
Run Code Online (Sandbox Code Playgroud)
我new_folder在/mnt文件夹中创建我的位置,但出现错误
sudo:找不到计算机计算机名称
COMPUTER NAME我也可以在资源管理器中看到的我的计算机的实际名称在哪里。
我做错了什么,如何在 Windows bash 中安装网络驱动器?
编辑:
通过在主机文件中添加我的计算机名称,我让它部分工作 etc/hosts
127.0.1.1 COMPUTER NAME
Run Code Online (Sandbox Code Playgroud)
但是我还是不能挂载网盘
我sudo apt-get update在用于 Linux 的新 Windows 子系统中尝试过,但出现以下错误:
最相关的部分似乎是关于 Ubuntu 服务器的“无法解析”行,例如:
Could not resolve 'archive.ubuntu.com'
Run Code Online (Sandbox Code Playgroud) windows windows-10 windows-insider windows-subsystem-for-linux