LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-10-2010, 12:24 PM   #1
mdfakkeer
Member
 
Registered: Jul 2009
Location: India
Distribution: Fedora,ubuntu
Posts: 35

Rep: Reputation: Disabled
how to copy drive using dd and tee command parallely? source code of dd command


i want to copy one harddisk to one or more harddsik simultaneously. i found from forum to use dd with tee command. i used the following command.

dd if=/dev/sda | tee >(dd of=/dev/sdb) >(dd of=/dev/sdc)|dd of=/dev/sdd

it copy all the files from the source sda to sdb,sdc,sdd. But it take the source file from sda and copied first on sdb then sdc then sdd on squential manner. After it copied the first file, it takes the second file to copy to all drives.But i want to copy the file parallely all the drive simultaneously. i come to know tee is the squential file copying utility. Any body know about the parallel copy to all drive simultaneously.
 
Old 02-10-2010, 01:31 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
Start one and background it, repeat.

Although you're quickly going to max out your drive's io like that.

eg:
Code:
dd if=/dev/sda of=/dev/sdb &
dd if=/dev/sda of=/dev/sdc &
dd if=/dev/sda of=/dev/sdd &
edit: likely to the point of becoming slower than a sequential copy.

Last edited by rweaver; 02-10-2010 at 01:34 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
source code for fg, bg command mohit_parihar Linux - General 4 12-10-2009 04:00 AM
Where can i get the source code of rm command jaikris Linux - Software 6 09-19-2009 12:04 AM
how to get the source code of e2fsck command? bitzsk Linux - Kernel 3 06-03-2009 06:30 AM
How to get the source code of command line ? the_cpp Programming 6 01-24-2009 09:01 AM
source code of ps command sudeepghiya Linux - General 1 09-21-2006 10:35 AM


All times are GMT -5. The time now is 03:59 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration