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

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read this

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

Postby dobbelyou on Thu Feb 21, 2013 2:19 pm

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]
Last edited by dobbelyou on Fri Feb 22, 2013 1:51 pm, edited 1 time in total.
free dropbox cloudstorage:
dropbox
dobbelyou
Level 1
Level 1
 
Posts: 34
Joined: Thu Feb 21, 2013 2:08 pm

Linux Mint is funded by ads and donations.
 

Re: add 2 samba shares into Linux (mint)

Postby altair4 on Thu Feb 21, 2013 2:42 pm

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?
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 15
Level 15
 
Posts: 5834
Joined: Tue Feb 03, 2009 10:27 am

Re: add 2 samba shares into Linux (mint)

Postby dobbelyou on Thu Feb 21, 2013 4:06 pm

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 [..............] ??
free dropbox cloudstorage:
dropbox
dobbelyou
Level 1
Level 1
 
Posts: 34
Joined: Thu Feb 21, 2013 2:08 pm

Re: add 2 samba shares into Linux (mint)

Postby altair4 on Thu Feb 21, 2013 4:29 pm

** 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.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 15
Level 15
 
Posts: 5834
Joined: Tue Feb 03, 2009 10:27 am

Re: add 2 samba shares into Linux (mint)

Postby kwisher on Fri Feb 22, 2013 12:24 pm

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
The instructions suggested Windows XP or better, so I installed Linux :)
User avatar
kwisher
Level 5
Level 5
 
Posts: 635
Joined: Wed Mar 05, 2008 12:54 pm
Location: Greentown, Indiana USA

Re: add 2 samba shares into Linux (mint)

Postby dobbelyou on Fri Feb 22, 2013 1:51 pm

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
free dropbox cloudstorage:
dropbox
dobbelyou
Level 1
Level 1
 
Posts: 34
Joined: Thu Feb 21, 2013 2:08 pm


Return to Other networking topics

Who is online

Users browsing this forum: No registered users and 5 guests