LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2012, 08:21 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
samba mount remote linux


I always use nfs to mount another linux server , it works fine , can advise how to use samba to mount remote linux server ?

I tried the below but not work

mount -t smb //remote_path //local_path

ps . I have installed samba on remote server and use Redhat 4 server .

Thanks.
 
Old 08-22-2012, 08:40 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

what do you mean "not work"? What error messages?
Typically I would run
Code:
mount -t cifs //hostname/sharename localmountpoint
This assumes that the username is the same on the local and remote hosts.

Evo2.
 
Old 08-22-2012, 11:51 PM   #3
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by ust View Post
I always use nfs to mount another linux server , it works fine , can advise how to use samba to mount remote linux server ?

I tried the below but not work

mount -t smb //remote_path //local_path

ps . I have installed samba on remote server and use Redhat 4 server .

Thanks.
-t will accept the type of file system, so you have to mention it as smbfs or cifs.

Try with :
Code:
mount -t smbfs //remote_host/path //local_path
or
Code:
mount -t cifs //remote_host/path //local_path
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help to mount remote samba share in fstab. JAgla Linux - Newbie 3 11-23-2009 02:47 PM
Remote Mount a Samba Share vcatalano Linux - Security 3 08-16-2008 06:40 PM
samba + remote mount eliufoo Linux - Server 3 07-30-2008 09:06 AM
long remote mount time for samba with cifs command luna6 Linux - Networking 1 04-01-2005 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration