HOWTO: QNAP Direct to USB Copy for newbs
-
- New here
- Posts: 2
- Joined: Thu Dec 20, 2007 7:05 pm
HOWTO: QNAP Direct to USB Copy for newbs
I noticed a lot of people commenting on the slow transfer between USB and the QNAP. That is because a lot of the methods it is obvious to use actually require the PC to be an interim storage point on the transfer.
To copy VERY large files (any files actually) directly from USB devices to and from the QNAP - I use Telnet (I couldn't find anything on the forums to explain to people how to do this at a basic level, it is probably there, just couldn't find it). This is the quickest way I have found to transfer large files when you use wireless and you have local physical access to the QNAP - files that take about hour over WLAN take a few minutes through USB. It might seem like a hassle at first, but its really quick once you have done it a couple of times.
Copy Using Telnet;
1. Download a Telnet client (like Putty - http://www.chiark.greenend.org.uk/~sgta ... nload.html)
2. Start Putty and enter the IP (or name) of your server
3. Enter the login data of the administrator account (i.e. login: admin password: <admin> (note: the password will NOT be displayed as you type)) at the command prompt
4. Try navigating through your files. Some useful commands are
* cd (Change Directory) i.e. cd /share/Public
* ls (list files)
* Some more detailed commands are shown at the end of this post
5. Assuming your USB device is plugged in (I think it has to be FAT or ext3 - can someone confirm?), you can navigate to it by entering cd /share/"USB Disk 1" - REMEMBER - case senstitive and directories or filenames with spaces need to be in quotes!!!
6. type ls and you should see the files on your USB drive
7. copy the files or directory you want using cp
* cp A1movie.avi /share/Qmultimedia/video (copies A1movie.avi from the USB disk you navigated to in step 5 to the QNAP)
* cp /share/Qmultimedia/video/A1movie.avi /share/"USB Disk 1" (to do the reverse)
* cp -r /ComedyMovies /share/Qmultimedia/video (copies the entire ComedyMovies directory from the current directory to the movies directory
Some Common Telnet commands
http://www.webhostgear.com/35.html
I hope this helps. Please let me know if there are any mistakes or it needs to be updated anywhere, I am no expert, just trying to help.
To copy VERY large files (any files actually) directly from USB devices to and from the QNAP - I use Telnet (I couldn't find anything on the forums to explain to people how to do this at a basic level, it is probably there, just couldn't find it). This is the quickest way I have found to transfer large files when you use wireless and you have local physical access to the QNAP - files that take about hour over WLAN take a few minutes through USB. It might seem like a hassle at first, but its really quick once you have done it a couple of times.
Copy Using Telnet;
1. Download a Telnet client (like Putty - http://www.chiark.greenend.org.uk/~sgta ... nload.html)
2. Start Putty and enter the IP (or name) of your server
3. Enter the login data of the administrator account (i.e. login: admin password: <admin> (note: the password will NOT be displayed as you type)) at the command prompt
4. Try navigating through your files. Some useful commands are
* cd (Change Directory) i.e. cd /share/Public
* ls (list files)
* Some more detailed commands are shown at the end of this post
5. Assuming your USB device is plugged in (I think it has to be FAT or ext3 - can someone confirm?), you can navigate to it by entering cd /share/"USB Disk 1" - REMEMBER - case senstitive and directories or filenames with spaces need to be in quotes!!!
6. type ls and you should see the files on your USB drive
7. copy the files or directory you want using cp
* cp A1movie.avi /share/Qmultimedia/video (copies A1movie.avi from the USB disk you navigated to in step 5 to the QNAP)
* cp /share/Qmultimedia/video/A1movie.avi /share/"USB Disk 1" (to do the reverse)
* cp -r /ComedyMovies /share/Qmultimedia/video (copies the entire ComedyMovies directory from the current directory to the movies directory
Some Common Telnet commands
http://www.webhostgear.com/35.html
I hope this helps. Please let me know if there are any mistakes or it needs to be updated anywhere, I am no expert, just trying to help.
- petur
- Moderator
- Posts: 4606
- Joined: Sun Mar 30, 2008 5:42 pm
- Location: Gent, Belgium
- Contact:
Re: HOWTO: QNAP Direct to USB Copy for newbs
Personally, I am now using rsync on the NAS itself to backup folders to an USB disk.
Get an SSH client (like SSH used below) and type:
I have to not that although this does a direct copy from NAS disks to USB, I still only get about 2.80MB/s![Sad :(](images/smilies/icon_sad.gif.pagespeed.ce.WlBTWgbe-d.gif)
As I'm fairly new to linux, I'll accept any corrections made to my above statements. It would be nice if QNAP would manage to put that rsync command behind the usb backup link in the webinterface.
Get an SSH client (like SSH used below) and type:
after giving your pasword you can then type something likeSSH admin@<your-nas-name-or-ip> -p 2222
of course, the destination folder must exist, and I'm not really sure if the shares are always under MD0_DATA and the usb disk under sdursync -r -t -p -o -g -x -v --progress --delete /share/MD0_DATA/<share-name>/ /share/external/sdu/<destination-folder>/
I have to not that although this does a direct copy from NAS disks to USB, I still only get about 2.80MB/s
![Sad :(](images/smilies/icon_sad.gif.pagespeed.ce.WlBTWgbe-d.gif)
As I'm fairly new to linux, I'll accept any corrections made to my above statements. It would be nice if QNAP would manage to put that rsync command behind the usb backup link in the webinterface.
Praat je liever over QNAP in het Nederlands?
Liever een community bij jou in de buurt?
Kom naar QNAPclub België/Nederland
Liever een community bij jou in de buurt?
Kom naar QNAPclub België/Nederland
-
- Experience counts
- Posts: 1786
- Joined: Sat Oct 13, 2007 2:21 am
- Location: Germany
Re: HOWTO: QNAP Direct to USB Copy for newbs
hi,
the rsync command is behind the remote replication. just use 127.0.0.1 as the remote adress. and 2.8MB/s is the normal speed that you get from rsync on the TS-Series NAS because the 500MHz RISC processor is just not fast enough for more than that.
and for people whoe are not into command lines try using winscp. i think it is more convenient.
the rsync command is behind the remote replication. just use 127.0.0.1 as the remote adress. and 2.8MB/s is the normal speed that you get from rsync on the TS-Series NAS because the 500MHz RISC processor is just not fast enough for more than that.
and for people whoe are not into command lines try using winscp. i think it is more convenient.
TVS-1282 | Version 4.4.3 | 3x 12TB WDC WD121KRYZ RAID5
TS-639 Pro | Version 4.2.6 | 5x 3TB WDC WD30EFRX RAID5 as Backup
LianLi EX-50 with 3x 2TB SAMSUNG HD203WI + 2x 2TB SAMSUNG HD204UI in RAID5 as Backup drive
LianLi EX-503 with 5x 2TB SAMSUNG HD204UI in RAID5 as Backup drive
TS-639 Pro | Version 4.2.6 | 5x 3TB WDC WD30EFRX RAID5 as Backup
LianLi EX-50 with 3x 2TB SAMSUNG HD203WI + 2x 2TB SAMSUNG HD204UI in RAID5 as Backup drive
LianLi EX-503 with 5x 2TB SAMSUNG HD204UI in RAID5 as Backup drive
- petur
- Moderator
- Posts: 4606
- Joined: Sun Mar 30, 2008 5:42 pm
- Location: Gent, Belgium
- Contact:
Re: HOWTO: QNAP Direct to USB Copy for newbs
So you are saying that cp would yield faster transfers?niwa2 wrote:hi,
the rsync command is behind the remote replication. just use 127.0.0.1 as the remote adress. and 2.8MB/s is the normal speed that you get from rsync on the TS-Series NAS because the 500MHz RISC processor is just not fast enough for more than that.
QNAP support told me that the 2.8MB/s USB speed is normal for USB transfers as this is a hardware design issue of the NAS.
Praat je liever over QNAP in het Nederlands?
Liever een community bij jou in de buurt?
Kom naar QNAPclub België/Nederland
Liever een community bij jou in de buurt?
Kom naar QNAPclub België/Nederland
-
- Experience counts
- Posts: 1786
- Joined: Sat Oct 13, 2007 2:21 am
- Location: Germany
Re: HOWTO: QNAP Direct to USB Copy for newbs
yes.
i have never tried the raw usb transfer with cp because the only external HDD i have is used as QRAID 1. and i am getting about 2,7MB/s when syncing. QRAID is also using rsync.
the cp command might be faster but as i said i have never tried how much faster it actually is or how much troughput the hardware is capable of using the usb connection. the only thing i can say is that the QRAID-sync over usb is as fast as using eSATA, which leads me to the conclusion that the usb conection can deliver at least raw 2,7MB/s or perhaps even more.
it is worth a try.
i have never tried the raw usb transfer with cp because the only external HDD i have is used as QRAID 1. and i am getting about 2,7MB/s when syncing. QRAID is also using rsync.
the cp command might be faster but as i said i have never tried how much faster it actually is or how much troughput the hardware is capable of using the usb connection. the only thing i can say is that the QRAID-sync over usb is as fast as using eSATA, which leads me to the conclusion that the usb conection can deliver at least raw 2,7MB/s or perhaps even more.
it is worth a try.
TVS-1282 | Version 4.4.3 | 3x 12TB WDC WD121KRYZ RAID5
TS-639 Pro | Version 4.2.6 | 5x 3TB WDC WD30EFRX RAID5 as Backup
LianLi EX-50 with 3x 2TB SAMSUNG HD203WI + 2x 2TB SAMSUNG HD204UI in RAID5 as Backup drive
LianLi EX-503 with 5x 2TB SAMSUNG HD204UI in RAID5 as Backup drive
TS-639 Pro | Version 4.2.6 | 5x 3TB WDC WD30EFRX RAID5 as Backup
LianLi EX-50 with 3x 2TB SAMSUNG HD203WI + 2x 2TB SAMSUNG HD204UI in RAID5 as Backup drive
LianLi EX-503 with 5x 2TB SAMSUNG HD204UI in RAID5 as Backup drive
- petur
- Moderator
- Posts: 4606
- Joined: Sun Mar 30, 2008 5:42 pm
- Location: Gent, Belgium
- Contact:
Re: HOWTO: QNAP Direct to USB Copy for newbs
Well the 2.8MB/s I have is the figure that rsync prints when it is doing a file transfer, so not a calculation of the total amount of files and the time rsync needed.
I guess I'll have to test this![Wink ;)](images/smilies/icon_wink.gif.pagespeed.ce.8Fgga7j_cy.gif)
I guess I'll have to test this
![Wink ;)](images/smilies/icon_wink.gif.pagespeed.ce.8Fgga7j_cy.gif)
Praat je liever over QNAP in het Nederlands?
Liever een community bij jou in de buurt?
Kom naar QNAPclub België/Nederland
Liever een community bij jou in de buurt?
Kom naar QNAPclub België/Nederland
-
- New here
- Posts: 2
- Joined: Fri Apr 30, 2010 10:30 pm
Re: HOWTO: QNAP Direct to USB Copy for newbs
I can't seem to find any of the directories after connecting. ls shows index_default.html
Nevermind. cd / put me in the root direcotry.
Nevermind. cd / put me in the root direcotry.
-
- New here
- Posts: 2
- Joined: Thu May 13, 2010 10:21 am
Re: HOWTO: QNAP Direct to USB Copy for newbs
I also was hoping for faster transfer rates using direct usb connection of an external drive to the qnap. Transfer for me maxed out around 4 mb/s. However, using local usb connection of my drive, I'm getting around 8 mb/s from my laptop to the qnap. go figure.
TS-210 :: Windows XP
-
- Starting out
- Posts: 32
- Joined: Fri May 21, 2010 5:25 am
Re: HOWTO: QNAP Direct to USB Copy for newbs
Thanks for this muchly appricated, does it provide a speed or ETA etc mine is just sat there doing nothing at the moment
[/share/USBDisk2/folder disk/folder] # cp -r /Music /share/Qmultimedia
cp: cannot stat `/Music': No such file or directory
[/share/USBDisk2/folder disk/Folder] # cp -r Music/ /share/Qmultimedia
**this is just a blank line with the cursor in it**
got it wrong first time![Smile :)](images/smilies/icon_smile.gif.pagespeed.ce.nuZG_6txEH.gif)
*EDIT*
the reason why i ask is as im copying about 400gb of data![Smile :)](images/smilies/icon_smile.gif.pagespeed.ce.nuZG_6txEH.gif)
Thanks
F
[/share/USBDisk2/folder disk/folder] # cp -r /Music /share/Qmultimedia
cp: cannot stat `/Music': No such file or directory
[/share/USBDisk2/folder disk/Folder] # cp -r Music/ /share/Qmultimedia
**this is just a blank line with the cursor in it**
got it wrong first time
![Smile :)](images/smilies/icon_smile.gif.pagespeed.ce.nuZG_6txEH.gif)
*EDIT*
the reason why i ask is as im copying about 400gb of data
![Smile :)](images/smilies/icon_smile.gif.pagespeed.ce.nuZG_6txEH.gif)
Thanks
F
- petur
- Moderator
- Posts: 4606
- Joined: Sun Mar 30, 2008 5:42 pm
- Location: Gent, Belgium
- Contact:
Re: HOWTO: QNAP Direct to USB Copy for newbs
400GB will take some time... you should see/hear disk activity, which means it is busy
Praat je liever over QNAP in het Nederlands?
Liever een community bij jou in de buurt?
Kom naar QNAPclub België/Nederland
Liever een community bij jou in de buurt?
Kom naar QNAPclub België/Nederland
-
- Starting out
- Posts: 21
- Joined: Mon Apr 19, 2010 2:48 pm
Re: HOWTO: QNAP Direct to USB Copy for newbs
What wrong with the webfilemanager to do this ??
-
- Starting out
- Posts: 16
- Joined: Fri Sep 04, 2009 11:25 pm
- Location: Munich
- Contact:
Re: HOWTO: QNAP Direct to USB Copy for newbs
is there any possibility to transfer files / folders from the nas to an external usb drive in a fast and uncomplicated way?
f.e. with filezilla or sth like it.
f.e. with filezilla or sth like it.
-
- Experience counts
- Posts: 1786
- Joined: Sat Oct 13, 2007 2:21 am
- Location: Germany
Re: HOWTO: QNAP Direct to USB Copy for newbs
the webfilemanager is the easiest way to do this.
you can also use any ftp, sftp or ssh client as well.
you can also use any ftp, sftp or ssh client as well.
TVS-1282 | Version 4.4.3 | 3x 12TB WDC WD121KRYZ RAID5
TS-639 Pro | Version 4.2.6 | 5x 3TB WDC WD30EFRX RAID5 as Backup
LianLi EX-50 with 3x 2TB SAMSUNG HD203WI + 2x 2TB SAMSUNG HD204UI in RAID5 as Backup drive
LianLi EX-503 with 5x 2TB SAMSUNG HD204UI in RAID5 as Backup drive
TS-639 Pro | Version 4.2.6 | 5x 3TB WDC WD30EFRX RAID5 as Backup
LianLi EX-50 with 3x 2TB SAMSUNG HD203WI + 2x 2TB SAMSUNG HD204UI in RAID5 as Backup drive
LianLi EX-503 with 5x 2TB SAMSUNG HD204UI in RAID5 as Backup drive
-
- Starting out
- Posts: 16
- Joined: Fri Sep 04, 2009 11:25 pm
- Location: Munich
- Contact:
Re: HOWTO: QNAP Direct to USB Copy for newbs
so if i plug the external drive to the qnap nas and transfer the files over a ftp client or the webfilemanager, the files wont make the long way over the computer, but instant onto the external drive?