Blog transfer from: http://www.01happy.com/linux-access-windows-shares-folders/
Sometimes you need to have access to a shared folder of Windows under Linux, either mount with mount or use Samba to connect.
1. Mount Mounts
First create the mounted directory:
$ mkdir Windows
To mount a shared folder to a Windows folder:
$ sudo mount-t cifs-o username=share,password=share//192.168.66.198/share./windows
Several of these parameters indicate meaning:
The Cifs:common Internet File system can be understood as a network filesystem.
Usrname: Access the user name of the shared folder
Password: access password
192.168.66.198/share: Indicates the address of the network folder, note that this is not the last to add/, if it is//192.168.66.198/share/will report the following error: Mount://192.168.66.198/share/is Not a valid block device
Tips: Using mount Mount method will expire after the system restarts, if you want to automatically mount the boot, the following settings will be added to the last side of the/etc/fstab file.
192.168.66.198/share/home/windows CIFS Defaults,username=share,password=share 0 2
Where/home/windows represents a mount point, which is the full path to the Windows directory above.
2. Connect using Samba
Samba is software that allows files between windows and the Unix family OS to be accessible to each other. Using Samba to access shared folders for Windows requires the installation of smbclient.
$ sudo apt-get install smbclient
Once installed, you will be able to access the shared files.
$ smbclient--user=share//192.168.66.198/shareenter share ' s password: (enter password return) SMB: \>
Now that you have entered the command operation space for SMB, you can use Help to view the use of the command.
SMB: \> Help ... Omit several commands ... exit get getfacl geteas hardlinkhelp history iosize lcd link ... Omit several commands ...
You can also use Help to see how a single command is used
SMB: \> help Gethelp get: [local name] get a file
Summary
Using the Mount command is relatively straightforward, and the basic Linux system will have this command, and you can access the Linux shared files from Windows using Samba.
Ways to access Windows files with Linux