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 |
That most likely means it's a SAMBA and/or CIFS device. Try using
smbmount to connect to it. Cheers, Tink |
Something like below.
Code:
mount -t cifs //ip address of device/share /mnt/yourmountpoint -o guest |
use scp.......
|
sorry!! :(
the right choice is --> mounting will going to work here : |
Quote:
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 |
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 |
I'd suggest you read "man mount.cifs" ...
Quote:
files to show locally. Name and creat at your discretion - hence the "yourmountpoint" Cheers, Tink |
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]. |
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.
|
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 |
Most linux distros have the mc console-mode file manager by default.
Mc "speaks" ftp... |
hi!
Let us know some details of NAS box you are using, what kind of NAS box is this ? Regards, PK |
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. |
Quote:
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:
have it's IP and the credentials right. Cheers, Tink |
All times are GMT -5. The time now is 05:37 PM. |