Mount a file system
ExamplesTo mount a CIFS share from a linux host. First make sure that the samba client is installed on the linux host, then it should be as simple as this command. If you want to add it to /etc/fstab, see the documentation on this Wiki for FSTAB
mount -t cifs //myserver.mydomain.com/sharename /path_to_directory -o username=someuser,password=somepassword
ErrorsYou may run into an error when attempting to mount a cifs share from a windows device that states "mount error(12): Cannot allocate memory". If you are running Windows XP or Vista Sp1 adding this reg key should fix the issue. This should be a REG_DWORD value and make sure that you set the dword decimal value to "15", the hex value should be "f"
However, the reg key above doesn't seem to work on Vista Sp2 or Windows 7. So add these reg keys instead, both are REG_DWORD values
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache, Value=1 HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size, Value=3