LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-13-2008, 02:20 PM   #1
cj4331
Member
 
Registered: Feb 2008
Posts: 30

Rep: Reputation: 15
how to copy files to another server


I've installed a NAS drive on our network and would like to be able to copy some files to it from our RedHat Linux server. How do I connect to this drive from Linux?

From Windows I would map a drive to \\NAS1\shared documents
 
Old 03-13-2008, 02:51 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
That most likely means it's a SAMBA and/or CIFS device. Try using
smbmount to connect to it.



Cheers,
Tink
 
Old 03-13-2008, 03:30 PM   #3
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
Something like below.
Code:
mount -t cifs //ip address of device/share  /mnt/yourmountpoint -o guest
hth
 
Old 03-13-2008, 03:37 PM   #4
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
use scp.......
 
Old 03-13-2008, 03:40 PM   #5
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
sorry!!
the right choice is -->
mounting will going to work here :
 
Old 03-13-2008, 03:56 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by geniushasan View Post
use scp.......
He's talking about a NAS (network attached storage). Even *if*
it was supporting ssh/scp it isn't quite the right way of dealing
with such a device. Now if he used a DE that supports sshfs,
maybe, but I wouldn't take that for granted.



Cheers,
Tink
 
Old 03-17-2008, 01:47 PM   #7
cj4331
Member
 
Registered: Feb 2008
Posts: 30

Original Poster
Rep: Reputation: 15
Sorry it's taken so long to reply.

I'm not sure what filesystem my NAS is using. It might very well be Linux.

If I use
mount -t cifs //ip address of device/share /mnt/yourmountpoint -o guest
What is /mnt/yourmountpoint? Remember I'm a newbie.
Is this like what directory I want it to be known as?

I know when I mount it in windows it asks for a username and password. I assume I would want to use
mount -t cifs user=admin password=pass //xxx.xxx.xxx.xxx/share /???????? -o guest
 
Old 03-17-2008, 02:20 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I'd suggest you read "man mount.cifs" ...

Quote:
What is /mnt/yourmountpoint?
That's an empty directory in which you want the remote machines
files to show locally. Name and creat at your discretion - hence
the "yourmountpoint"


Cheers,
Tink
 
Old 03-17-2008, 03:28 PM   #9
cj4331
Member
 
Registered: Feb 2008
Posts: 30

Original Poster
Rep: Reputation: 15
I'm not having much luck. I did find something in the documentation for the NAS. Perhaps someone can tell me what it means.

LaCie Ethernet Big Disk
User Manual

Accessing the Share
4.4. Linux Users

Under KDE, open konqueror and type in the IP address
of the LaCie Ethernet Big Disk into the address field:
For FTP access – ftp:// [IP address]
For HTTP access – http:// [IP address]
For SMB/CIFS access (in order for this to method to work, the services need to be properly configured) – smb:// [IP address].
 
Old 03-17-2008, 08:03 PM   #10
cj4331
Member
 
Registered: Feb 2008
Posts: 30

Original Poster
Rep: Reputation: 15
KDE and konqueror it seems have to do with GUI interfaces and browsers. I don't have either on this Linux server. So I guess I'll look some more into the correct mount command and hope I can find the correct parameters to get that to work.
 
Old 03-17-2008, 08:58 PM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Good observation, excellent conclusion. Did you read man mount.cifs?

The command you suggested wasn't that far from the truth, you see ...


Cheers,
Tink
 
Old 03-18-2008, 06:05 AM   #12
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Most linux distros have the mc console-mode file manager by default.

Mc "speaks" ftp...
 
Old 03-18-2008, 06:27 AM   #13
pkhera_2001
Member
 
Registered: Mar 2006
Location: New Delhi, India
Distribution: Fedora, CentOS, RHEL, Ubuntu
Posts: 67

Rep: Reputation: 18
hi!

Let us know some details of NAS box you are using, what kind of NAS box is this ?

Regards,
PK
 
Old 03-18-2008, 07:21 AM   #14
cj4331
Member
 
Registered: Feb 2008
Posts: 30

Original Poster
Rep: Reputation: 15
Yes, I read man mount.cifs. It wasn't much help. It reads "No manual entry for mount.cifs"

I've looked at a lot of help an man stuff including man mount and smbmount. There is a lot of stuff and much I don't understand. If you know what I'm doing wrong please help a brother out and let me know.

The NAS is a LaCie Ethernet Big Disk. It is 2Tb. I'm sure there is more than one drive in that enclosure maybe 2 or 3 but because of the warranty label I haven't been able to open it and see what's in there.
 
Old 03-18-2008, 12:36 PM   #15
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by cj4331 View Post
Yes, I read man mount.cifs. It wasn't much help. It reads "No manual entry for mount.cifs" ;)
That's just sad ... in that case: you could try using
smbfs instead of cifs. Or does the invocation
mount -t cifs //xxx.xxx.xxx.xxx/share /???????? -o guest,user=admin,password=pass

work as such?

As for the /?????? it's as I said: You need to create a mount-point,
commonly under /mnt ... a mount-point is just a directory where the
remote files will show locally.
e.g. mkdir /mnt/nas
and then
mount -t cifs //xxx.xxx.xxx.xxx/share /mnt/nas -o user=admin,password=pass

If DeadRat complains about -t cifs try -t smbfs


Quote:
Originally Posted by cj4331 View Post
I've looked at a lot of help an man stuff including man mount and smbmount. There is a lot of stuff and much I don't understand. If you know what I'm doing wrong please help a brother out and let me know.

The NAS is a LaCie Ethernet Big Disk. It is 2Tb. I'm sure there is more than one drive in that enclosure maybe 2 or 3 but because of the warranty label I haven't been able to open it and see what's in there.
Make and model of the device don't really matter if you
have it's IP and the credentials right.



Cheers,
Tink
 
  


Reply



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
Copy files from my PC to server anjanesh Linux - Newbie 6 12-30-2005 12:28 AM
how to copy files from a remote server man1979 Linux - General 3 08-16-2005 06:08 AM
how to copy files from my linux server. luqman Red Hat 1 02-24-2005 09:45 AM
copy files using SSH from a server to another..both remote Santosh_d Linux - Networking 6 03-10-2004 11:02 PM
copy files from a server to another..both remote Santosh_d Linux - Networking 1 03-09-2004 07:52 AM

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

All times are GMT -5. The time now is 11:33 PM.

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