我正在尝试挂载一个Windows网络文件夹。我将Windows文件夹设置为与每个人共享只读格式。我相信这允许本地网络上的任何人访问该文件。
其次,在候机楼:
silver@TheSilverLaptop:~$ mkdir ~/desktop/Windows-Share sudo mount.cifs //windows-computer-name/folder-name终端以下列方式响应:
mkdir:cannot create directory '/home/silver/desktop/Windows-Share' No such file or directory我不明白它为什么这么说。当然没有目录,这就是我要求创建目录的原因。
mkdir: cannot create directory 'sudo': File exists
mkdir: cannot create directory 'mount.cifs': File exists
mkdir: cannot create directory '//windows-computer-name/folder-name' no such file or directory.注意:对于Windows -计算机名称/文件夹名称,我已插入windows计算机的名称和windows计算机上的文件夹。
发布于 2018-06-29 21:04:31
当涉及到基于Linux的OSes时,大写很重要。桌面的文件夹是~/Desktop,所以您的命令应该是:
mkdir ~/Desktop/Windows-Share 然后,它是挂载的来源,然后作为一个单独的命令到达挂载的目的地。
sudo mount.cifs //windows-computer-name/folder-name ~/Desktop/Windows-Share所有这些都可以作为命令中的一种类型来完成,用&&例如:
mkdir ~/Desktop/Windows-Share && sudo mount.cifs //windows-computer-name/folder-name ~/Desktop/Windows-Share请参阅https://wiki.ubuntu.com/MountWindowsSharesPermanently所需的用户名和密码设置。
https://askubuntu.com/questions/1050830
复制相似问题