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

相关文章
|
10月前
|
安全 Linux 生物认证
Nexpose 8.25.0 for Linux & Windows - 漏洞扫描
Nexpose 8.25.0 for Linux & Windows - 漏洞扫描
374 0
Nexpose 8.25.0 for Linux & Windows - 漏洞扫描
|
10月前
|
安全 Linux iOS开发
Binary Ninja 5.1.8104 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
Binary Ninja 5.1.8104 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
814 53
Binary Ninja 5.1.8104 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
|
10月前
|
安全 Linux 生物认证
Nexpose 8.24.0 for Linux & Windows - 漏洞扫描
Nexpose 8.24.0 for Linux & Windows - 漏洞扫描
428 17
Nexpose 8.24.0 for Linux & Windows - 漏洞扫描
|
10月前
|
SQL 安全 Linux
Metasploit Pro 4.22.8-20251014 (Linux, Windows) - 专业渗透测试框架
Metasploit Pro 4.22.8-20251014 (Linux, Windows) - 专业渗透测试框架
470 1
Metasploit Pro 4.22.8-20251014 (Linux, Windows) - 专业渗透测试框架
|
10月前
|
Linux 网络安全 iOS开发
Metasploit Framework 6.4.95 (macOS, Linux, Windows) - 开源渗透测试框架
Metasploit Framework 6.4.95 (macOS, Linux, Windows) - 开源渗透测试框架
1072 1
Metasploit Framework 6.4.95 (macOS, Linux, Windows) - 开源渗透测试框架
|
10月前
|
Linux 虚拟化 iOS开发
VMware Remote Console 13.0.1 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
VMware Remote Console 13.0.1 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
1959 0
VMware Remote Console 13.0.1 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
|
10月前
|
Linux iOS开发 计算机视觉
GIMP 3.0.6 (Linux, macOS, Windows) 发布 - 免费开源图像编辑器
GIMP 3.0.6 (Linux, macOS, Windows) 发布 - 免费开源图像编辑器
662 0
|
Web App开发 安全 Linux
|
11月前
|
Linux 应用服务中间件 Shell
二、Linux文本处理与文件操作核心命令
熟悉了Linux的基本“行走”后,就该拿起真正的“工具”干活了。用grep这个“放大镜”在文件里搜索内容,用find这个“探测器”在系统中寻找文件,再用tar把东西打包带走。最关键的是要学会使用管道符|,它像一条流水线,能把这些命令串联起来,让简单工具组合出强大的功能,比如 ps -ef | grep 'nginx' 就能快速找出nginx进程。
1046 1
二、Linux文本处理与文件操作核心命令
|
11月前
|
Linux
linux命令—stat
`stat` 是 Linux 系统中用于查看文件或文件系统详细状态信息的命令。相比 `ls -l`,它提供更全面的信息,包括文件大小、权限、所有者、时间戳(最后访问、修改、状态变更时间)、inode 号、设备信息等。其常用选项包括 `-f` 查看文件系统状态、`-t` 以简洁格式输出、`-L` 跟踪符号链接,以及 `-c` 或 `--format` 自定义输出格式。通过这些选项,用户可以灵活获取所需信息,适用于系统调试、权限检查、磁盘管理等场景。
688 137