How to mount a Samba Share on Linux

H

How Can We Help?

How to mount a Samba Share on Linux

mount -t cifs -o username=YOURUSERNAME,password=YOUPASSWORD //server_name_or_ip/folder_to_mount /mnt/folder_to_mount_to/

By using the above command and by replacing the relevant fields with your details, you should be able to mount your Samba Share on Linux

Explanation:

  • mount = mounts a filesystem
  • -t = Used to indicate the filesystem type, in this case cifs
  • cifs = Common Internet Filesystem
  • YOURUSERNAME = Replace with your Samba Share Username
  • YOURPASSWORD = Replace with your Samba Share Password
  • server_name_or_ip = Replace with your Server name or IP address
  • folder_to_mount = Network share name/ folder
  • /mnt/folder_to_mount_to = The folder on the Linux machine you wish to mount the Drive to. Ensure that this folder exists

About the author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

About Author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

Follow Me