<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt">'dd'? :-)<br><br>Actually, you can probably use something like sfdisk to do it.<br>sfdisk -d /dev/hda &gt; hda.out<br>sfdisk /dev/hdb &lt;&nbsp; hda.out<br><br>or, more succinctly:<br>sfdisk -d /dev/hda | sfdisk /dev/hdb<br><br>How's that?<br><br>Cheers!<br><br>Bob<br><div>&nbsp;</div>--<br>"When once you have tasted flight, you will forever walk the earth with your eyes turned skyward, for there you have been, and there you will always long to return."<br>   --Leonardo da Vinci<div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">----- Original Message ----<br>From: Darin Perusich &lt;Darin.Perusich@cognigencorp.com&gt;<br>To: nflug@nflug.org<br>Sent: Friday, September 5, 2008
 12:31:41 PM<br>Subject: [nflug] quick partition table mirroring<br><br>
I'm not sure the subject of this message accurately describes what I'm <br>looking but it's kind of close.<br><br>I have a Linux server with mirrored drives and one of the drives died. <br>I've replaced the dead drive with an identical disk and want to recreate <br>the partition layout and rebuild the mirrors, simple tasks. Because the <br>disks are identical I'd rather not have to manually create all the <br>partitions, I want to suck that info from disk1 and apply it to disk2.<br><br>On Solaris I'd use prtvtoc from grab the disks partitions and fmthard to <br>apply it to the new drive but haven't been able to locate equivalents on <br>&nbsp; Linux yet. Is anyone aware of how this can be done on Linux?<br><br>-- <br>Darin Perusich<br>Unix Systems Administrator<br>Cognigen Corporation<br>395 Youngs Rd.<br>Williamsville, NY 14221<br>Phone: 716-633-3463<br>Email: <a ymailto="mailto:darinper@cognigencorp.com"
 href="mailto:darinper@cognigencorp.com">darinper@cognigencorp.com</a><br>_______________________________________________<br>nflug mailing list<br><a ymailto="mailto:nflug@nflug.org" href="mailto:nflug@nflug.org">nflug@nflug.org</a><br><a href="http://www.nflug.org/mailman/listinfo/nflug" target="_blank">http://www.nflug.org/mailman/listinfo/nflug</a><br></div></div></div><br>

      </body></html>