Http://www.cyberciti.biz/tips/how-to-mount-remote-windows-partition-windows-share-under-linux.html
by Nixcraft on April 26, 2004 • Comments Last UPDATED August 3, 2007
In CentOS, File system, HOWTO
All files accessible in a Linux (and UNIX) system is arranged in one big tree, the file hierarchy, rooted at/. These files can be spread off 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 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 the 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 is mount (outdated, use CIFS)
- - T CIFS : File system type to be mount
- - o : is options passed to mount command, in this example I had passed the options. First argument is password (Vivek) and second argument are 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:
- Configure a system to automount a Samba share With/etc/fstab file
How to mount remote Windows partition (Windows share) under Linux