LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-23-2011, 10:52 AM   #1
osakagreg
LQ Newbie
 
Registered: Sep 2011
Posts: 1

Rep: Reputation: Disabled
Question using rsync to copy from server to local usb hard drive


I'm completely foreign to what I'm trying to do. I purchased a 3TB usb hard drive. It is plugged in on a Windows 7 operating system.

I want to copy the files from a Linux server to this hard drive. I have no idea what command to use.

I thought it must be something like:
rsync -avzP /bin/ {location of hard drive}

But I don't know even what the correct path is.

I would appreciate any help with this. Thank you!
 
Old 09-23-2011, 01:43 PM   #2
travisdh1
Member
 
Registered: Sep 2008
Distribution: Fedora
Posts: 129

Rep: Reputation: 22
Is it even mounted yet? You can find out with
Code:
df -h
If it's not mounted you'll want to look at the /dev directory for the device (hard drives are normally sd? where ? is a letter.) I'm not sure that a usb mounted hard drive will be the same but I'd hope so (may depend on the distribution tho I think that may be a kernel thing.) Actually, it might be easier to just do an
Code:
fdisk -l
which should list all the drives and partitions the system sees.

Anyhow, you'll want to mount the usb drive using something like
Code:
mount -t ntfs /dev/sdb1 /mnt/tmp
/mnt/tmp is just a directory you create and /dev/sdb1 is the drive and partition to mount.
 
Old 09-23-2011, 02:04 PM   #3
LBM
Member
 
Registered: Aug 2010
Location: Denmark
Distribution: Debian
Posts: 114

Rep: Reputation: 1
If it is not automounted, you can check dmesg for which device it is recognized as. In example /dev/sdc. The partition would then be /dev/sdc1
 
Old 09-24-2011, 02:30 AM   #4
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
... I purchased a 3TB usb hard drive. It is plugged in on a Windows 7 operating system.
you have to make the drive Shared in Windows and then on your Linux machine with samba connect to that shared drive on windows machine

then you probably could copy the files if the shared is mounted (travisdh1 post)

Last edited by lithos; 09-24-2011 at 02:31 AM.
 
Old 09-24-2011, 09:36 PM   #5
ShanxT
Member
 
Registered: Apr 2007
Location: India
Distribution: Ubuntu 10.04, RHEL/Centos 5.x, Knoppix
Posts: 41

Rep: Reputation: 3
Also check out WinSCP if you don't mind doing the copying from the Windows box.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] rsync --link-dest not creating hard links on external usb drive quasi3 Linux - General 4 08-26-2009 10:11 AM
File copy error from USB hard drive Jugney Linux - General 3 04-29-2008 05:55 AM
How to copy file from usb device to hard drive?????? Overcool Linux - Newbie 1 01-04-2007 07:06 PM
rsync fails with USB hard drive Mad Scientist Linux - Software 3 03-27-2006 12:02 PM
copy files from your hard drive to usb key with Knoppix ziegen Linux - Distributions 1 08-09-2004 01:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:01 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