Linux hangs on Windows operating system shared folders

Source: Internet
Author: User

Tag: Mount Mount

A. Prepare a shared directory for Windows

Set up a folder to enable anonymous access, you can enter the password when the Linux mount.

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/8D/64/wKiom1iaqHey5x7CAABKZpWhSgE113.png "title=" 11.png "alt=" Wkiom1iaqhey5x7caabkzpwhsge113.png "/>

Second, mount the directory to the Linux system

Mount-t cifc "path to Windows shared folder" "Linux/mnt path"

For example

Mkdir/windows

Mount-t CIFS//192.168.1.10/linuxshare/windows

Linux requires you to enter a password to access the Windows shared folder.

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/8D/64/wKiom1iaqaXD8j_lAAAlmtWL0wI731.png "title=" 11.png "alt=" Wkiom1iaqaxd8j_laaalmtwl0wi731.png "/>


The following is a shared folder that is set according to user rights

  1. i.e. Mount-t cifs//16.187.190.60/test/mnt/

    linux will require you to enter a password to access the Windows shared folder.

    note:

    linux prompt:

    unable to find suitable address. 

    650) this.width=650; "class=" Exp-image-default "alt=" Linux mount command Mounts Windows shared folder "src="/HTTP/ d.hiphotos.baidu.com/exp/w=500/sign=5c1177479e16fdfad86cc6ee848e8cea/ 4034970a304e251f6e346894a486c9177e3e539f.jpg "style=" border:0px; "/>

  2. 2

    Note:

    linux:

    mount error (13): Permission denied

    refer to the Mount.cifs (8) manual page (e.g. Mans mount.cifs)

    solution: Add the user name and password that access the Windows shared directory directly to the command.

    650) this.width=650; "class=" Exp-image-default "alt=" Linux mount command Mounts Windows shared folder "src="/HTTP/ b.hiphotos.baidu.com/exp/w=500/sign=991da384bf3eb13544c7b7bb961ea8cb/ D31b0ef41bd5ad6ec4d3eb8682cb39dbb6fd3cb7.jpg "style=" border:0px; "/>

  3. 3

    mount-t Cifs-o Username=windowslogin, password= "Passwordinwindows"

    650 for window users) this.width=650; class= "Exp-image-default" alt= " The Linux Mount command mounts the Windows shared folder "Src=" http://b.hiphotos.baidu.com/exp/w=500/sign=b570350897eef01f4d1418c5d0ff99e0/ A686c9177f3e6709c8c2c99338c79f3df9dc559f.jpg "style=" border:0px; "/>

  4. 4

    mount.cifs-o username= "Administrator", password= "Passwordforwindows"//16.187.190.50/test/mnt/

    650) this.width=650; "class=" Exp-image-default "alt=" Linux mount command Mount Windows shared folder "Src=" http://f.hiphotos.baidu.com/exp/ W=500/sign=e4c2c99338c79f3d8fe1e4308aa0cdbc/0eb30f2442a7d933e56a681fae4bd11372f0019f.jpg "style=" border:0px; >

  5. 5

    650) this.width=650; "class=" Exp-image-default "alt=" Linux mount command Mounts Windows shared folder "src="/HTTP/ c.hiphotos.baidu.com/exp/w=500/sign=e3ff03fdce11728b302d8c22f8fdc3b3/ D043ad4bd11373f0b0fde3f3a70f4bfbfaed049f.jpg "style=" border:0px; "/>

  6. 6

    mount.cifs-o username= "Administrator", password= "Passwordforwindows", Uid=Mysa , Gid=mysa//16.187.190.50/test/mnt/

    650) this.width=650; "class=" Exp-image-default "alt=" Linux mount command mount Windows shared Folder "Src=" http://h.hiphotos.baidu.com/exp/w=500/sign=d2318f8fd639b6004dce0fb7d9513526/ 55e736d12f2eb9385caff69ed6628535e4dd6f98.jpg "style=" border:0px; "/>

  7. 7

    Check the folder owner and group in/mnt/.

    650) this.width=650; "class=" Exp-image-default "alt=" Linux mount command Mounts Windows shared folder "src="/HTTP/ d.hiphotos.baidu.com/exp/w=500/sign=a7260b6930fa828bd1239de3cd1f41cd/ 1ad5ad6eddc451da9ad38387b5fd5266d01632b0.jpg "style=" border:0px; "/>

  8. 8

    Change folder permissions. Write permission to the group where the Mount shared folder is located.

    Mount.cifs-o username= "Administrator", password= "Passwordforwindows", mysa,gid=mysa,dir_mode=0777//16.187.190.50/ test/mnt/

    650) this.width=650; "class=" Exp-image-default "alt=" Linux mount command Mount Windows shared folder "Src=" http://e.hiphotos.baidu.com/ Exp/w=500/sign=ad3589a6818ba61edfeec82f713497cc/ac6eddc451da81cb25db0ca15166d01609243198.jpg "style=" border:0px ; "/>

    650) this.width=650; "class=" Exp-image-default "alt=" Linux mount command Mount Windows shared folder "Src=" http://c.hiphotos.baidu.com/ Exp/w=500/sign=f0f380dbea50352ab16125086343fb1a/9a504fc2d56285352fdd5d4d93ef76c6a7ef6399.jpg "style=" border:0px ; "/>



This article is from the "richylu____ Records" blog, so be sure to keep this source http://richylu.blog.51cto.com/1481674/1896006

Linux hangs on Windows operating system shared folders

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.