Mount a windows share in linux

Print Friendly, PDF & Email

It’s relatively simple to mount a Windows share in Linux. Here’s how you do it.

Step 1 – Create a directory to mount to, e.g. /mnt/WinDir

[user@techedemic ~] cd mnt
[user@techedemic ~] sudo mkdir WinDir

Step 2 – Mount the remote folder as follows

# Syntax:
# mount -t cifs //[remote machine name/ip]/[sharename] /[localfolder]/[mountfolder] -o username=[username],password[password]
[user@techedemic ~] sudo mount -t cifs //10.1.1.10/incoming /mnt/WinDir -o username=techedemic,password=password

Step 3 – You should now be able to access the share (you might not have the correct permissions, but that’s beyond the scope of this howto)

[user@techedemic ~] cd /mnt/WinDir
[user@techedemic ~] ls 
File1.txt     File2.bmp     File3.gif

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.