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

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.