mount a samba point
October 10th, 2006 mysurface Posted in Admin, mount, mount.cifs, smbmount, sudo | Hits: 32129 |
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
Live Chat!







May 5th, 2007 at 9:53 pm
very good also i used this information with my fedora and worked (with some modifications) :)
thanks
July 13th, 2007 at 12:25 am
[...] For Mounting windows drive through samba, check here. [...]
July 13th, 2007 at 2:10 am
[...] For Mounting windows drive through samba, check here. [...]
October 13th, 2007 at 3:34 am
[...] http://linux.byexamples.com/archives/101/mount-a-samba-point/ may help [...]