The FMP has the capability to mount a Windows share and hence it can support file transfer in both the directions.
Perform the following operations on the FMP to mount a Windows share on it:
Create a directory using the following command:
mkdir <mountdir>
where, <mountdir> is the name of the directory that you want to create.
Mount a Windows share on the directory using the following command:
mount //<sharehost>/<share> <mountdir> –o user=<account>,domain=<domain>
where,
<sharehost> is the name or IP address of the Windows host on which the share is located
<share> is the name of the share on the Windows system
<account> is the name of the user account that has access to the Windows share. If the user account is a domain account, then specify the name of the domain, else, provide only the user name.
<domain> is the name of the domain to which <account> belongs to. If the <account> account is an account on <sharehost> and not a domain account, then do not include “,domain=<domain>”
Notes:
Use forward slash ( / ). This is in contrast to Windows naming convention where backward slash ( \ ) is used.
Do not use space next to a comma ( , ) or an equal ( = ) sign.
For example,
mount //192.169.12.2/WinShare /anydir –o user=Administrator,domain=corp
When you run this command, you will be prompted to enter the password associated with the specified user account.
View the content of the Windows share using the following command:
ls <mountdir>
Copy files between the Windows share and Linux using the following commands:
To copy files from Linux to the Windows share use the command
cp <source> <destination>
For example, after mounting a Windows share on the /MyMount directory, use the following command to copy a file named FileA from the current directory to the share.
cp FileA /MyMount
To copy files from the Windows share to Linux, use the command
cp <source> <destination>
For example, use the following command to copy a file named FileB from the Window share mounted on /MyMount to the current directory on a Linux system.
cp /MyMount/FileB
After copying the files, unmount the Windows share using the following command:
umount <mountdir>
where, <mountdir> is the name of the directory on which the share is mounted.