LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-28-2004, 04:52 PM   #1
dln2k5
LQ Newbie
 
Registered: Oct 2004
Posts: 1

Rep: Reputation: 0
Question using dd comand to write to multiple destinations


Hey, I am a linux newbie.
Been working with it for the past 2months now and i must say i love every thing new i learned about it about the OS itself and its functionality.

My question is about using the dd command (short for Disk Druid)
i like to call it.. dunkin donuts... cuz you can take a donunt from the source(if) and dunk it to its destination(of).. lol.. i know its a corney lil joke but.. whatever rocks my boat

CAN YOU USING dd TO BRUN TO MORE THAN ONE LOCATION AT THE SAME TIME?

SENARIO/EXAMPLE ((CAN THIS BE DONE))

I tried
time dd if=/mnt/sda of=/dev/sdb

which works fine....

now what about?

a. time dd if=/mnt/sda of=/dev/sdb of=/dev/sdc
b. time dd if=/mnt/sda of=/dev/sdb & of=/dev/sdc
c. time dd if=/mnt/sda of=/dev/sdb && of=/dev/sdc
d. time dd if=/mnt/sda of=/dev/sdb | /dev/sdc
e. time dd if=/mnt/sda of=/dev/sdb || /dev/sdc
f. time dd if=/mnt/sda of=/dev/sdb | of=/dev/sdc
g. time dd if=/mnt/sda of=/dev/sdb || of=/dev/sdc


remember i want to make a copy of one image or drive.. to 2 others AT THE SAME TIME!

PLLLLLEEEEEEEEEEEASE TELL ME THIS IS POSSIBLE. AND CAN BE DONE!!

AND GET BACK TO ME BY LETTING ME KNOW HOW.


THANKS IN ADVANCE...
 
Old 10-28-2004, 05:17 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
If you are talking about partitions then raid is probably the best way to go.

If you want to do it with files you can link them (I just tested to be sure):
rossy - trigger - Thu Oct 28 23:13:35
~> vi testing
rossy - trigger - Thu Oct 28 23:14:14
~> touch testing1
rossy - trigger - Thu Oct 28 23:14:16
~> ln testing1 testing2
rossy - trigger - Thu Oct 28 23:14:19
~> dd if=testing of=testing1
0+1 records in
0+1 records out
rossy - trigger - Thu Oct 28 23:14:23
~> ll testing*
-rw-r--r-- 1 rossy users 5 Oct 28 23:13 testing
-rw-r--r-- 2 rossy users 5 Oct 28 23:14 testing1
-rw-r--r-- 2 rossy users 5 Oct 28 23:14 testing2
 
  


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
how to write multiple threads working simultaneously ? indian Programming 3 09-19-2011 11:41 PM
multiple process write to a file tangxf Linux - General 2 11-23-2005 12:44 AM
Difficulties installing new urpmi destinations iqbala Mandriva 1 10-23-2005 04:36 PM
Piping email to two destinations? tubedogg Linux - Newbie 2 12-04-2003 08:21 PM
How to write multiple c++ files? Xiangbuilder Programming 2 09-15-2003 09:12 AM


All times are GMT -5. The time now is 11:46 PM.

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