Monday 4 January 2016

Quickly mount a windows share on a linux host

I typically often run my hypervisor on Linux - so quite often I find the need to copy files from Windows guest's onto my Linux host.

To quickly get access - simply create a standard SMB fileshare on your windows box and ensure the correct permissions are set.

On the linux host we can do something like:
apt-get install cifs-utils
mkdir /media/myfileshare
sudo mount -t cifs //mywindowshost/myshare /media/myfileshare -o username=myusername,domain=domain.com,iocharset=utf8,file_mode=0777,dir_mode=0777

0 comments:

Post a Comment