Map Windows share to Linux

Quick way to copy files from Windows to Linux

Map Windows share to Linux
Page content

Mounting Windows on Linux

Setup on Ubuntu

sudo apt-get install keyutils  
sudo apt-get install cifs-utils

Setup on Redhat

sudo yum install keyutils cifs-utils

Syntax

UNC=server.domain.com/share
USERNAME=yourwindowslogin
DOMAIN=NAMEOFDOMAIN
PASSWORD=yourpassword

sudo mkdir -p /mnt/${UNC}
sudo mount -t cifs -o username=${USERNAME},domain=${DOMAIN},password=${PASSWORD} //${UNC} /mnt/${UNC}