Overview
There are many file-sharing methods for files between Linux and Windows, such as FTP, SAMBA, SCP, Smbfs, CIFS
1. FTP and samba have to set up servers on Linux, before writing a blog about the Samba server build
2. SCP needs Windows to support SSH2
3.SMBFS is more convenient, but later iterations have been replaced by CIFS
SMBFS Tutorial: http://blog.csdn.net/yilovexing/article/details/77185633
CIFS Server Configuration
1. Set up a shared directory under Windows, called the Defaultgroup folder
2. Install cifs-utils under Linux yum/apt-get very convenient to install
sudo apt-get install cifs-utils
sudo yum install cifs-utils
3. Mount is a Linux command, it can be a Linux "file" attached to a Linux folder, so that the Windows Division and ~/dell This directory, so we just access this folder, it is quite To access the partition.
Linux mount (Mount command) Detailed: http://tutu.spaces.eepw.com.cn/articles/article/item/70737
4. Manual execution mode
sudo mount-t cifs//192.168.1.74/defaultgroup/home/zhangyi/dell/-o Username=dell
You are prompted for a password, and you can then see the shared directory of Windows.
5. Automated Scripting Mode (Ubuntu for example)
Boot Boot execution
sudo vi/etc/rc.local
Add to
EXEC mount-t cifs//192.168.1.74/defaultgroup/home/zhangyi/dell/-o username= "DELL", password= "g3nt00567"
sudo mount-t cifs//windowsip address/windows folder/linux folder-o username= "account", password= "password"