This is one of those commands that you need to know, but use it so very rarely that it’s hard to memorize. It seems like I have to go back and look this up every time I need to use it. What is it? It’s the command to mount an SMB share from the typical Linux host.
The command looks something like this:
mount -t smbfs -o username=User,password=Pass //host.IP.addr.ess/sharename /local/mnt
Of course, this should be typed all on a single line.
I find myself most often using this command when I need to mount an SMB share from the Service Console of one of my ESX hosts. So, to keep myself from having to go out and perform yet another Google search next time I need this, I’ll know to just look right here.
Tags: Linux, Networking, Samba


2 comments
Comments feed for this article
Trackback link
http://blog.scottlowe.org/2007/04/19/mounting-smb-shares-in-linux/trackback/
Saturday, September 8, 2007 at 3:16 am
Tiklu Ganguly
Hi Slowe,
Thanx for the command. It really helped me a lot
Friday, November 30, 2007 at 9:59 am
Ken
Thanks for the command, and the one down a bit further on Mounting an .iso. Don’t worry, there are plenty of non-seasoned Linux users and admins who find those posts very helpful.