Live Chat!

mount a samba point

* * * *   1 votes

October 10th, 2006 mysurface Posted in Admin, mount, mount.cifs, smbmount, sudo | Hits: 11445 |

You may heard about smbmount, smbfs or cifs. Yes if you are looking for how to mount a point to access to other machine through samba, you come to a right page.

How to mount a samba point might be vary at different linux distro, I ll recomment you at least read the manuals at your distro. I am here just to show you the common way. To mount a samba point, you must have smbfs compiled in your kernel, but I think it should be there by default on nowadays distro.

For the case of ubuntu, you may want to install smbfs using apt-get

sudo apt-get install smbfs

You can mount a samba point by using the common mount command. Yes, no need to use smbmount, but with smbmount it just does the same. (Some distro not even have smbmount, in my case FC5)

You can specified a type of file system by using -t, this is what we going to use.

sudo mount -t smbfs //192.168.1.1/d /mnt/win-d

With command line about, it mount to directory /mnt/win-d, the remote host is at 192.168.1.1, shared directory “d”.

To specified username, uses -o

sudo mount -t smbfs //192.168.1.1/d /mnt/win-d -o username=mysurface

You can check out the service that shared from a remote host using smbclient -L.

To do with smbmount, do this

sudo smbmount //192.168.1.1/d /mnt/win-d -o username=mysurface

But, FC5 smbfs doesn’t work, if your distro doesn’t work with smbfs, it probably uses cifs. cifs is “Common Internet File System”, whatever it call, just change smbfs to cifs, it will works the same way. FC5 also have mount.cifs, it works like smbmount.

sudo mount -t cifs //192.168.1.1/d /mnt/win-d -o username=mysurface
sudo mount.cifs //192.168.1.1/d /mnt/win-d -o username=mysurface

4 Responses to “mount a samba point”

  1. mohamed nasr Says:

    very good also i used this information with my fedora and worked (with some modifications) :)

    thanks

  2. [...] For Mounting windows drive through samba, check here. [...]

  3. [...] For Mounting windows drive through samba, check here. [...]

Leave a Reply