How to mount remote windows partition (windows share) under Linux

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:

时间: 2024-07-31 18:57:22

How to mount remote windows partition (windows share) under Linux的相关文章

How to mount remote Windows shares

  Contents Required packages Basic method Better Method Even-better method Yet Another Even-better method OK, we live in the wonderful world of Linux. BUT, for many of us, having to deal with Windows is a fact of life. For example, you may want to us

Unable to mount a ntfs partition after replace windows after Linux install?

*/--> Unable to mount a ntfs partition after replace windows after Linux install? Today, I replaced Win7 with Win8.1, the outcome of this action is that the grub fails, and I had to use the LiveUSB to repair the boot grub. The easy way to do this is

Enable and Use Remote Commands in Windows PowerShell

The Windows PowerShell remoting features are supported by the WS-Management protocol and the Windows Remote Management (WinRM) service that implements WS-Management in Windows. Computers running Windows 7 and later include WinRM 2.0 or later. On comp

remote mounting from windows to linux

8 Ways To Mount SMBfs (SAMBA FILE SYSTEM) In Linux. Sep 8, 2009 How to Mount smbfs (SAMBA file system) permanently in Linux.In this post I am going to give some examples how to do SMB (Server Message Block) mounts.. Type1 : Listing SMB shared folder

通过VMware Tools 将主机windows的目录共享给linux虚拟机

之前有写过 本地虚拟机挂载windows共享目录搭建开发环境 这篇,里面讲通过使用samba来实现网络共享 最近发现其实完全不用这么麻烦,VMware tools就可以帮助我们轻松的共享文件夹 这里引用一篇网络文章来源(其实自己写一遍也没什么意义 就直接引用了) http://beyrens.blog.163.com/blog/static/95894452200922172733802/ 防止引用内容失效 顺便也复制过来 为了更好的解决虚拟机与主机的共享问题,VMware公司有一个VMWare

将Windows文件挂在到Linux上

1.先在windows下面共享需要挂载的目录. 2.确保linux与windows是在同一个局域网当中. 3.在linux下面创建一个需要挂载到的目录. 4.利用mount命令进行挂载. (1),mount -t cifs //ip/windows共享目录名 /linux上面的挂载点目录 -o username=windows用户,password=访问共享需要的密码 或者 mount -t cifs -o username='用户名',password='密码' //ip/共享目录名 /挂在路

安装linux发生的无法引导windows以及windows分区变为raw的解决

先说明一下操作系统的引导流程: 主引导记录(MBR,Main Boot Record)是位于磁盘最前边的一段引导(Loader)代码 分区引导记录(PBR,Partition Boot Record)是各个分区自己的引导记录,写在各个分区开始处第一个扇区 DOS引导记录(DOS Boot Record)应称为OBR(OS Boot Record),意思是活动分区的PBR,即操作系统引导记录 在系统启动时,最先读取的硬盘信息是MBR,然后由MBR内的主引导程序读出PBR,最后才由PBR内的DOS引

windows文件夹共享给linux使用和防火墙配置

第一步,windows上文件设置共享 高级共享上设置共享名字 在共享上设置,添加用户 第二步,配置windows防火墙 第三步,linux上挂载目录 mount -t cifs -o username="xiaofeng",password="xxx" //172.18.1.156/log /mnt 注意:   log是共享名字 原文地址:https://www.cnblogs.com/xiaofeng0510/p/8669227.html

Oracle 11G GoldenGate实现Windows与Windows之间的单向同步

Oracle  GoldenGate实现Windows与Windows之间的单向同步 本次实验都是在win环境进行,目的通过GoldenGate实现Windows与Windows之间的单向同步进行对源库复制备份. 实验环境说明 操作系统:Windows 2008 R2  , 数据库:oracle 11.2.0.1.0 , GoldenGate:11.2.1.0.3 for Microsoft Windows x64 下载地址:http://down.51cto.com/data/2448081