linux系统挂载windows文件夹

简介:

首先啊,我在网上查了,都是直接mount或者mount.cifs 用户密码目录就行了,但是我死活都挂载不上,各种无语,

网上查了好多的前辈的挂载方法,但是我就是挂在不上,报错如下:

 

[root@hxy tuxiang]# mount.cifs //10.10.32.201/file /mnt/server -o user=administrator,pass=hxy123
Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[root@hxy tuxiang]# mount.cifs //192.168.10.1/file /mnt/server -o user=administrator,pass=hxy123
Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[root@hxy tuxiang]# ping 10.10.32.201
PING 10.10.32.201 (10.10.32.201) 56(84) bytes of data.
64 bytes from 10.10.32.201: icmp_seq=1 ttl=64 time=14.3 ms
64 bytes from 10.10.32.201: icmp_seq=2 ttl=64 time=18.0 ms

我试着看下网络也没问题

最后想到,既然是共享文件夹,那是不是需要windows也是设置共享呢?

说做就做,

linux系统挂载windows文件夹 - mghxy123 - Forand

 

linux系统挂载windows文件夹 - mghxy123 - Forand

文件夹共享OK了

再次尝试

 

[root@hxy tuxiang]# mount.cifs //192.168.10.1/file /mnt/server -o user=administrator,pass=hxy123
[root@hxy tuxiang]# cd /mnt/server/
[root@hxy server]# ls
MicrosoftOffice_2007_XiTongZhiJia.zip  Total_Control_6.2.0.2886.exe  wftpd32.exe

OK成功了.

还有过程中出现的一个插曲

我做好共享目录后向这是不是要绝对路径才能呗挂载,于是加上了

 mount.cifs //192.168.10.1/software/file /mnt/server -o user=administrator,pass=hxy123

这样也不行,应为software不是共享目录,测试完成.

本文转自  Forande  51CTO博客,原文链接:
http://blog.51cto.com/853056088/1931767

相关文章
|
7月前
|
安全 Linux 生物认证
Nexpose 8.25.0 for Linux & Windows - 漏洞扫描
Nexpose 8.25.0 for Linux & Windows - 漏洞扫描
333 0
Nexpose 8.25.0 for Linux & Windows - 漏洞扫描
|
7月前
|
安全 Linux iOS开发
Binary Ninja 5.1.8104 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
Binary Ninja 5.1.8104 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
724 53
Binary Ninja 5.1.8104 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
|
7月前
|
安全 Linux 生物认证
Nexpose 8.24.0 for Linux & Windows - 漏洞扫描
Nexpose 8.24.0 for Linux & Windows - 漏洞扫描
389 17
Nexpose 8.24.0 for Linux & Windows - 漏洞扫描
|
7月前
|
SQL 安全 Linux
Metasploit Pro 4.22.8-20251014 (Linux, Windows) - 专业渗透测试框架
Metasploit Pro 4.22.8-20251014 (Linux, Windows) - 专业渗透测试框架
409 1
Metasploit Pro 4.22.8-20251014 (Linux, Windows) - 专业渗透测试框架
|
7月前
|
Linux 网络安全 iOS开发
Metasploit Framework 6.4.95 (macOS, Linux, Windows) - 开源渗透测试框架
Metasploit Framework 6.4.95 (macOS, Linux, Windows) - 开源渗透测试框架
835 1
Metasploit Framework 6.4.95 (macOS, Linux, Windows) - 开源渗透测试框架
|
7月前
|
Linux 虚拟化 iOS开发
VMware Remote Console 13.0.1 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
VMware Remote Console 13.0.1 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
1772 0
VMware Remote Console 13.0.1 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
|
7月前
|
Linux iOS开发 计算机视觉
GIMP 3.0.6 (Linux, macOS, Windows) 发布 - 免费开源图像编辑器
GIMP 3.0.6 (Linux, macOS, Windows) 发布 - 免费开源图像编辑器
577 0
|
7月前
|
安全 数据安全/隐私保护 虚拟化
Windows Server 2022 中文版、英文版下载 (2025 年 10 月更新)
Windows Server 2022 中文版、英文版下载 (2025 年 10 月更新)
1983 2
Windows Server 2022 中文版、英文版下载 (2025 年 10 月更新)
|
7月前
|
安全 Unix 物联网
Windows 7 & Windows Server 2008 R2 简体中文版下载 (2025 年 10 月更新)
Windows 7 & Windows Server 2008 R2 简体中文版下载 (2025 年 10 月更新)
861 0
Windows 7 & Windows Server 2008 R2 简体中文版下载 (2025 年 10 月更新)
|
8月前
|
运维 安全 网络安全
Windows Server 2019拨号“找不到设备”?Error 1058解决指南
Windows Server 2019拨号报错1058?别急!这不是硬件故障,而是关键服务被禁用。通过“服务依存关系”排查,依次启动“安全套接字隧道协议”“远程接入连接管理”和“路由与远程访问”服务,仅需4步即可恢复PPPoE或VPN拨号功能,轻松解决网络中断问题。
619 1