Window file directory mount (Mount) to Linux system directory __linux

Source: Internet
Author: User
window file directory mount (Mount) to Linux system directory

How Linux accesses the file directory under Windows.

To mount the file share of the window system to the Linux CentOS directory, method steps:

1. Share the directories that need to be mounted under Windows first.
2, to ensure that Linux and Windows are in the same LAN.
3. Create a directory below Linux that needs to be mounted.
4, using mount command to mount.

Mount-t Cifs-o username=cht,password=123456//172.216.176.36/test/var/www/html/mount

Use the Mount command to map the Windows directory to the Linux directory parameter description:

Username: is the window System login user name

Password:window System Login Password

172.216.176.36/test: Set the path of window shared directory, IP plus share filename

/var/www/html/mount: The directory that was mounted under Linux

Mount Common error:

Mount error = Permission denied

Refer to the Mount.cifs (manual page (E.g.man mount.cifs)

Make sure the command entered is the same as the above mount.

Then check that the window's username and password are correct.

If you have the appropriate permissions, add permissions to the following figure.

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.