Mounting A Windows File Share On Linux

To mount a Windows file share on Linux, first create the file share on Windows and give the appropriate permissions to the user. Then, on Linux you want to do the following:

Create a directory for the mount point

mkdir -p /mnt/windows/backups

Use the mount command to mount the Windows share:

mount -t cifs //yourwindowsserver/backups -o username=YOURUSERNAME,password=YOURPASSWORD

Access the Windows share mount point:

cd /mnt/windows/backups
ls -l

To make the mount point automount across reboots, you will need to edit the /etc/fstab and add the following entry:

//yourwindowsserver/backups /mnt/windows/backups cifs username=YOURUSERNAME,
password=YOURPASSWORD 0 0
No Comments

Start the ball rolling by posting a comment on this article!

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>