Accessing Windows Shares from Linux


Once in a while, you may want to access or mount a Windows shared folder from Linux. Doing do is actually quite simple. First, create a directory where the share will be mounted. This should be an empty directory. I think it’s best to put it under /mnt. You can call it whatever you want.

sudo mkdir /mnt/winshare

Then, use the mount command.

sudo mount -t cifs //SERVER/SHARENAME -o username=USER,password=PASS /mnt/winshare

Replacing the uppercase text with your Windows file server info, of course.

You may need to run the following beforehand:

sudo apt-get install cifs-utils

Leave a Reply