Page 1 of 1

[SOLVED] add 2 samba shares into Linux (mint)

Posted: Thu Feb 21, 2013 2:19 pm
by dobbelyou
hi,

i have mint 14 with Mate desktop

i need to mount 2 debian servers, both with samba installed and 100% working.
server 1 is on ip: 192.168.0.191 , need to be mounted on /home/mint/TS212
server 2 is on ip: 192.168.0.196 need to be mounted on /home/mint/TS119

i am used to make a samba location in kde like : smb://192.168.0.19X in dolphin, if i am correct.
i am not able to do that in Caja.

my question is:
how do i mount my 2 servers into Mint?

i have tried several howtoś , based on cifs-utils, like: this one]

Re: add 2 samba shares into Linux (mint)

Posted: Thu Feb 21, 2013 2:42 pm
by altair4
It's impossible to answer you question since we don't know the nature of the problem you are experiencing.

When you access the share via caja with a smb://192.168.0.100/share-name does it give you an error message?

When you access it with a "sudo mount -t cifs....." does it give you an error message?

Re: add 2 samba shares into Linux (mint)

Posted: Thu Feb 21, 2013 4:06 pm
by dobbelyou
altair4 wrote:It's impossible to answer you question since we don't know the nature of the problem you are experiencing.

When you access the share via caja with a smb://192.168.0.100/share-name does it give you an error message?

When you access it with a "sudo mount -t cifs....." does it give you an error message?
the fact is that mount -t cifs does not work, or i do not know what credentials i need to use
accessing via smb://182.168.0.16X works, without errorś

so, what credentials in mount -t cifs i need to use in order to mount, and later automount using fstab?

mount -t cifs [..............] ??

Re: add 2 samba shares into Linux (mint)

Posted: Thu Feb 21, 2013 4:29 pm
by altair4
** It's the same credentials you used when accessing the share using the caja method:

For example to use the HowTo you linked to:

Code: Select all

sudo mount -t cifs //192.168.0.199/share /home/mint/TS212 -o username=some-user-name,password=some-password,rw,uid=1000,gid=1000,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777
Where username = the one you used in caja to acces the share.
And password = the one you used in caja to access the share.

Are you sure you're not getting an error that looks something like this:
mount: wrong fs type, bad option, bad superblock on //192.168.0.199/share,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so
You need to install the following package:

Code: Select all

sudo apt-get install cifs-utils
Still don't know the nature of the problem without knowing what error messages you are receiving.

Re: add 2 samba shares into Linux (mint)

Posted: Fri Feb 22, 2013 12:24 pm
by kwisher
This how-to is kind of dated but the underlying principles still work. My question to you is why not use NFS instead of Samba for Linux to Linux file sharing?
http://ubuntuforums.org/showthread.php?t=288534

Re: add 2 samba shares into Linux (mint)

Posted: Fri Feb 22, 2013 1:51 pm
by dobbelyou
thanks for all the answers, but figured out myself:

Open Caja, by going to menu>Personal Folder
File>connect to server , Servertype = Windows Network

Server = IP of NAS
Select: Add Bookmarks
Choose a bookmarkname. like MyNas
Connect, and voila, connected to the nas, and also a bookmark to connect later

PS: migrated to kde, and in kde i am able to add, in dolphin, an entry with location smb://IP_of_NAS
works prefect