http://www.cyberciti.biz/tips/how-to-mount-remote-windows-partition-windows-share-under-linux.html 

by nixCraft on April 26, 2004 · 64 comments· LAST UPDATED August 3, 2007

in CentOS, File system, Howto

All files accessible in a Linux (and UNIX) system are arranged in one big tree, the file hierarchy, rooted at /. These files can be spread out over several devices. The mount command serves to attach the file system found on some device to the big file tree.

Use the mount command to mount remote windows partition or windows share under Linux as follows:

Procedure to mount remote windows partition (NAS share)

1) Make sure you have following information:
==> Windows username and password to access share name
==> Sharename (such as //server/share) or IP address
==> root level access on Linux

2) Login to Linux as a root user (or use su command)

3) Create the required mount point:
# mkdir -p /mnt/ntserver
4) Use the mount command as follows:
# mount -t cifs //ntserver/download -o username=vivek,password=myPassword /mnt/ntserver

Use following command if you are using Old version such as RHEL <=4 or Debian <= 3:
# mount -t smbfs -o username=vivek,password=D1W4x9sw //ntserver/download /mnt/ntserver

5) Access Windows 2003/2000/NT share using cd and ls command:
# cd /mnt/ntserver; ls -l
Where,

  • -t smbfs : File system type to be mount (outdated, use cifs)
  • -t cifs : File system type to be mount
  • -o : are options passed to mount command, in this example I had passed two options. First argument is password (vivek) and second argument is password to connect remote windows box
  • //ntserver/download : Windows 2000/NT share name
  • /mnt/ntserver Linux mount point (to access share after mounting)

See also:

最新文章

  1. 【转】java通用URL接口地址调用方式GET和POST方式
  2. low到一定程度了
  3. mongodb,redis,hbase 三者都是nosql数据库,他们的最大区别和不同定位是什么?
  4. Win7下VS2010使用“ASP.Net 3.5 Claims-aware Template”创建ClaimsAwareWebSite报&quot;HRESULT: 0x80041FEB&quot;错误的解决办法
  5. Nginx服务器
  6. 利用钩子函数来捕捉键盘响应的windows应用程序
  7. 《深入Java虚拟机学习笔记》- 第8章 连接模型
  8. shell获取db信息及上传下载操作
  9. selenium2.0处理case实例(二)
  10. 【原创】LoadRunner Java Vuser开发环境配置指南
  11. C语言基础文件读写操作
  12. Jmeter接口测试-badboy录制脚本(二)
  13. 编程之美2013 初赛一 A - 竞价 学习大牛的思路
  14. Java 并发专题 :闭锁 CountDownLatch 之一家人一起吃个饭
  15. 取SQL分组中的某几行数据
  16. jQueryGantt与DHTMLX-Gantt的对比
  17. 第十八章 DjangoWeb开发框架
  18. java集合框架--List、Set、Map
  19. Ubuntu16.04安装opencv-3.4.2
  20. 解决由于服务器调用删除或添加字段后CXF客户端未更新导致异常问题org.apache.cxf.interceptor.Fault: Unmarshalling Error: Unexpected element

热门文章

  1. SSM整合junit单元测试之org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
  2. Daily in Ipin
  3. ubantu使用小结
  4. 某CTF比赛writeup
  5. VAEs(变分自编码)之keras实践
  6. 50道Kafka面试题和解析(转载)
  7. java面试指导2019-9-10
  8. mysql数据库之单表查询多表查询
  9. day18 time、datetime、calendar、sys、os、os.path模块
  10. springboot整合filter