How to mount a remote Windows shared folder with Mount

Source: Internet
Author: User
Machine environment:

Machine 1: The Windows IP address is 192.168.1.19 and the machine name is l09.
There is a super administrator bnnb on it. This user exists. The system is Windows 2003, and the shared folder is winsoft.

Machine 2: slackware

Let's take a look at what Windows machines share?

Quote:

Bash-3.00 # smbclient-ubnnb-l 192.168.1.19
Password: enter the password of your Windows Account bnnb.
Domain = [l09] OS = [Windows Server 2003 3790] Server = [Windows Server 2003 5.2]

Sharename type comment
--------------------
E $ disk-winsoft Disk
IPC $ IPC d $ disk-F $ disk-ADMIN $ disk C $ disk-Session Request to 192.168.1.19 failed (called name not present)
Session Request to 192 failed (called name not present)
Domain = [l09] OS = [Windows Server 2003 3790] Server = [Windows Server 2003 5.2]

Server comment
----------------

Workgroup master
----------------
Bash-3.00 #

We know from the above that winsoft is indeed shared on the l09 machine. How can we mount it to the local machine ..

Use the following method

Quote:

Bash-3.00 # Mount-T smbfs-O username = bnnb // l09/winsoft/mnt/MACOs/
Password: enter the password here

Check whether mount is in ??

Quote:

 

Bash-3.00 # ls/mnt/MACOs/

Work log company backup company file software 5 duty schedule .doc promotional materials duty schedule (October-December 2017.xls
Bash-3.00 #

Passwd can also be passed directly as a parameter.

Mount-T smbfs-O username = bnnb, passwd = XXXX // l09/winsoft/mnt/MACOs/

The name resolution mechanism in Windows is very bad. Sometimes the NetBIOS name cannot be resolved to an IP address normally. In Windows, some machines can see it, but some machines cannot see it. Therefore, you can directly use the IP address as a parameter.

Mount-T smbfs-O username = bnnb, passwd = XXXX, IP = XXX. XXX // l09/winsoft/mnt/MACOs/

 

If your system is a unicode System of Win2k/XP, you must use CIFS to solve the problem. Otherwise, when cp936 is added, all CJK texts except the GB quota will be reserved. Please refer to this command:

Mount-t cifs // 192.168.1.1/winsoft/mnt/MACOs/-O username = bnnb, iocharset = utf8

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.