博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
linux系统挂载windows文件夹
阅读量:6922 次
发布时间:2019-06-27

本文共 1307 字,大约阅读时间需要 4 分钟。

首先啊,我在网上查了,都是直接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

转载地址:http://mpujl.baihongyu.com/

你可能感兴趣的文章
Foundation框架 ---- 结构体
查看>>
安装OpenStack计算服务(nova)
查看>>
安装browser-sync
查看>>
CDays–4 习题五及相关内容解析。
查看>>
Logcat中报内存泄漏MemoryLeak的一次分析
查看>>
ORA-01658: 无法为表空间COREV6中的段创建INITIAL区
查看>>
C# PicBox 背景透明
查看>>
队列、堆、栈、堆栈的区别
查看>>
我有我的方向
查看>>
我的友情链接
查看>>
处理超大日志文件
查看>>
1秒50万字的关键词匹配(js实现)
查看>>
我的友情链接
查看>>
mongodb笔记2(基本操作,增删改)
查看>>
我的友情链接
查看>>
我的友情链接
查看>>
Nginx 安装及配置
查看>>
oracle 查询月份
查看>>
2台Elastix对接测试
查看>>
微信招后台开发工程师、微信业务运维
查看>>