ubuntu挂载Windows共享文件夹

首先,在Windows设置需要共享的文件夹;然后使用如下两个方式将共享文件夹挂载到Ubuntu系统中,

1.mount方式:关机失效

win主机IP192.168.1.100,共享目录workspace

mount -t cifs -o username='echo',password='123456' //192.168.1.100/workspace  /mnt/share 

2.通过修改fstab文件,支持开机自动挂载

修改/etc/fstab文件,文件最后加入:

//192.168.1.100/workspace   /mnt/share cifs  auto,username=‘echo’,password=‘123456’  0 0 

其中username是Windows系统的用户名,密码为Windows用户密码。

在执行指令的时候,如果不安装cifs可能会报mount:cannot mount block device,安装指令如下:sudo apt-get install cifs*

安装完后即可实现共享文件的挂载。

参考网址:http://blog.csdn.net/u012207077/article/details/14446603

http://www.centoscn.com/CentOS/Intermediate/2014/0318/2619.html

http://www.cnblogs.com/dingyingsi/archive/2013/04/16/3023392.html

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值