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

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
dobbelyou

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

Post 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]
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
altair4
Level 20
Level 20
Posts: 11419
Joined: Tue Feb 03, 2009 10:27 am

Re: add 2 samba shares into Linux (mint)

Post 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?
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
dobbelyou

Re: add 2 samba shares into Linux (mint)

Post 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 [..............] ??
altair4
Level 20
Level 20
Posts: 11419
Joined: Tue Feb 03, 2009 10:27 am

Re: add 2 samba shares into Linux (mint)

Post 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.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
kwisher

Re: add 2 samba shares into Linux (mint)

Post 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
dobbelyou

Re: add 2 samba shares into Linux (mint)

Post 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
Locked

Return to “Networking”