Snippets v2

Languages
My Snippets

Mount a SMB share in Redhat/Centos Login or Register to Bookmark this snippet

Description Bash

This is the command to mount a share. It's not directly related to Bash scripting, but I needed to put it somewhere.

You may need to install smbfs first.

The Code Download
  1. mount -t smbfs -o username=share_user,password=share_pass //netbios_name/share_path /mnt/local_mnt_name
Credits Contact JC

Added by JC on 31st January, 2008

Comments
31st January, 2008 8:51 am JC
Recently, 'smbfs' is no longer supported. Using 'cifs' instead will work.
Post Comment HTML is allowed

You must be registered and logged in to post a comment.

Login here to post a comment