How Linux mounts shared files under Windows

Source: Internet
Author: User

When you find that your talents can't hold up your ambition, please be quiet and study ***************


Description
There is a shared folder under Windows App,windows local IP is 192.168.9.155
Now you need to mount this app folder on a Linux server, and the Linux server IP is 192.168.9.200

The operation record is as follows:

1) Preparation on Windows

First, set the app folder under the D drive on Windows to share. Right-click the Share property of the app folder.

650) this.width=650; "src=" Http://images2015.cnblogs.com/blog/907596/201610/907596-20161018182709170-2029542032.png "/>

Select the specific users share to add the shared user. As follows

650) this.width=650; "src=" Http://images2015.cnblogs.com/blog/907596/201610/907596-20161018182854107-463275219.png "/>

650) this.width=650; "src=" Http://images2015.cnblogs.com/blog/907596/201610/907596-20161018183258201-1770898842.png "/>

In this way, the app folder is set to the shared folder, and the O3ZYRM2D4GNP5J2 is the Windows machine name. View the files inside the app

650) this.width=650; "src=" Http://images2015.cnblogs.com/blog/907596/201610/907596-20161018182954529-1264363942.png "/>

2) operations on the Linux server

Create mount Directory/mnt/app

[Email protected] ~]# Mkdir/mnt/app

Mount using mount.cifs : (the user name and password below are logged into Windows)

[email protected] ~]# Yum provides */mount.cifs

[[Email protected] ~] #yum-y install cifs-utils-4.8.1-20.el6.x86_64

[Email protected] ~]# mount.cifs //192.168.9.155/app /mnt/app/ -o user=administrator,pass= Taren1

Check it out and find it's hanging up.
[Email protected] ~]# ls/mnt/app/
2.sql 3.sql 8633 on-line Sql.zip


[Email protected] mnt]# df-h
Filesystem Size used Avail use% mounted on
/dev/sda2 450G 97G 331G 23%/
Tmpfs 3.9G 228K 3.9G 1%/DEV/SHM
/DEV/SDA1 194M 34M 150M 19%/boot
192.168.9.155/app 123G 12G 111G 10% /mnt/app

[email protected] mnt]# mount
/dev/sda2 on/type ext4 (rw)
Proc On/proc type proc (rw)
Sysfs On/sys type SYSFS (rw)
Devpts on/dev/pts type devpts (rw,gid=5,mode=620)
Tmpfs ON/DEV/SHM type TMPFS (rw)
/DEV/SDA1 on/boot type EXT4 (rw)
None On/proc/sys/fs/binfmt_misc type Binfmt_misc (rw)
Gvfs-fuse-daemon ON/ROOT/.GVFS type Fuse.gvfs-fuse-daemon (Rw,nosuid,nodev)
192.168.9.155/app On/mnt/app type CIFS (rw)

Unloading
[Email protected] mnt]# Umount/mnt/app
[Email protected] mnt]# df-h
Filesystem Size used Avail use% mounted on
/dev/sda2 450G 97G 331G 23%/
Tmpfs 3.9G 228K 3.9G 1%/DEV/SHM
/DEV/SDA1 194M 34M 150M 19%/boot



This article is from the "12336621" blog, please be sure to keep this source http://12346621.blog.51cto.com/12336621/1914816

How Linux mounts shared files under Windows

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.