如何在 Linux 上永久挂载一个 Windows 共享

如题所述

方法/步骤mount -t cifc "windows共享文件夹" "Linux /mnt路径"
i.e. mount -t cifs //16.187.190.60/test /mnt/
Linux 会要求输入访问Windows 共享文件夹上的密码。
注意:
Linux中提示:
Unable to find suitable address.
说明远程共享文件夹路径不存在。请仔细检查,并更正目录路径。
mount -t cifc "windows共享文件夹" "Linux /mnt路径"
i.e. mount -t cifs //16.187.190.50/test /mnt/
注意:
Linux中提示:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
解决方案:将访问Windows共享目录的用户名和密码直接加入到命令中。
mount -t cifs -o username=WindowsLogin,password="passwordinWindows"
//16.187.190.50/test /mnt/
注意:该命令中,username为windows上的用户;password为window用户对应的密码
步骤3的命令也可以使用以下方式实现:
mount.cifs -o username="Administrator",password="PasswordForWindows" //16.187.190.50/test /mnt/
温馨提示:答案为网友推荐,仅供参考
相似回答