LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to copy files to another server (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-copy-files-to-another-server-627838/)

cj4331 03-13-2008 02:20 PM

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

Tinkster 03-13-2008 02:51 PM

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



Cheers,
Tink

lord-fu 03-13-2008 03:30 PM

Something like below.
Code:

mount -t cifs //ip address of device/share  /mnt/yourmountpoint -o guest
hth

hasanatizaz 03-13-2008 03:37 PM

use scp.......

hasanatizaz 03-13-2008 03:40 PM

sorry!! :(
the right choice is -->
mounting will going to work here :

Tinkster 03-13-2008 03:56 PM

Quote:

Originally Posted by geniushasan (Post 3087738)
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

cj4331 03-17-2008 01:47 PM

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

Tinkster 03-17-2008 02:20 PM

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

cj4331 03-17-2008 03:28 PM

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].

cj4331 03-17-2008 08:03 PM

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.

Tinkster 03-17-2008 08:58 PM

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

J_Szucs 03-18-2008 06:05 AM

Most linux distros have the mc console-mode file manager by default.

Mc "speaks" ftp...

pkhera_2001 03-18-2008 06:27 AM

hi!

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

Regards,
PK

cj4331 03-18-2008 07:21 AM

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.

Tinkster 03-18-2008 12:36 PM

Quote:

Originally Posted by cj4331 (Post 3092525)
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 (Post 3092525)
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


All times are GMT -5. The time now is 05:37 PM.