Mount the windows shared folder with the mount command in CentOS

Source: Internet
Author: User

This method is useful in learning and work. The method is as follows:

1. First share the windows system folder

2. in linux, use the following command to mount shared folders.

Mount-t cifs // 192.168.1.102/studyshare/mnt-o username = chocolee

Cifs is a file system.

192.168.1.102 is the IP address of the WIN host.

Studyshare is the name of the shared folder.

Mnt is the mount point

Username = user of the chocolee win system, WHO has permissions on this shared folder!

Note:

[Root @ CentOS6 ~] # Mount-t cifs // 192.168.1.102/studyshare/mnt-o username = chocolee

Password:

[Root @ CentOS6 ~] #

After you press the command, you will be asked to enter the chocolee password. If no error is reported, it will basically prove that the mounting is successful.

[Root @ CentOS6 ~] # Df-h

Filesystem Size Used Avail Use % Mounted on

/Dev/sda3 12G 2.4G 8.3G 23%/

Tmpfs 181 M 0 181 M 0%/dev/shm

/Dev/sda1 194 M 28 M 156 M 16%/boot

// 192.168.1.102/studyshare

98G, 31G, 68G, 32%/mnt

3. Test

Create a test file on linux:

[Root @ CentOS6 ~] # Cd/mnt/

[Root @ CentOS6 mnt] # touch test. sh # create a test file

[Root @ CentOS6 mnt] # ll

Total 0

-Rwxr-xr-x 1 root 0 Mar 18 00:51 test. sh

View on win system:

OK, success ~~~ I hope it will help you in your study!

This article is from the Chocolee blog, please be sure to keep this source http://chocolee.blog.51cto.com/8158455/1378369

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.