You could probably use rsync -avz source dest <br><br><p><DEFANGED_div><DEFANGED_span class="gmail_quote">On 8/30/06, <b class="gmail_sendername">Bill Littlejohn</b> <<a href="mailto:billl@mtd-inc.com">billl@mtd-inc.com</a>> wrote:</DEFANGED_span>
<blockquote class="gmail_quote" DEFANGED_style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><p><DEFANGED_div>
<p><DEFANGED_div bgcolor="#ffffff" text="#000000">
I'm a little confused.<br>
"You can correct the partition table with parted or fstab after it's
done.".<br>
What do you mean by "correct"? <br>
I've used guiparted in Knoppix but not much else. I usually use
Partition Commander.<br>
I'm also a little confused on the purpose of using fdisk and ntfsresize
after transferring the image.</p><DEFANGED_div><p><DEFANGED_div><DEFANGED_span class="q"><br>
"<br>
dd if=/dev/sda of=/dev/sdb bs=4000000<br>
fdisk /dev/sdb<br>
...<br>
ntfsresize /dev/sdb1<br>
"<br></DEFANGED_span></p><DEFANGED_div><p><DEFANGED_div>
I know I'm being somewhat dense here - a little hand-holding would be
appreciated.<br>
:)<br></p><DEFANGED_div><p><DEFANGED_div><DEFANGED_span class="sg">
Bill</DEFANGED_span></p><DEFANGED_div><p><DEFANGED_div><DEFANGED_span class="e" id="q_10d600e8e10ae666_4"><br>
<br>
<br>
Al Tobey wrote:
<blockquote cite="http://mid5ac7acb10608300925r518e447ct10fdc1d7a12d4690@mail.gmail.com" type="cite">
<pre>On 8/30/06, Bill Littlejohn <a href="mailto:billl@mtd-inc.com" target="_blank" DEFANGED_onclick="return top.js.OpenExtLink(window,event,this)"><billl@mtd-inc.com></a> wrote:<br> </pre>
<blockquote type="cite">
<pre>OK. Short background.<br>The integrated video card in my wifes winxp box is borked and the system<br>won't boot anything.<br>I want to duplicate the drive in order to boot the copy using LiveView<br>in a VM for the purpose of recovering
<br>the damned DRM license keys for all her music.<br><br>I have the 40GB source drive hooked up a usb-ide converter.<br>I have a handy 75GB usb drive available to put the copy onto.<br>My source drive shows as /dev/sda and the target as /dev/sdb under both
<br>Suse and Knoppix.<br>No surprises there.<br>The source drive has a single NTFS partition using 100%.<br><br>So here is the problem,<br>I need the result to be an exact copy (i.e. bootable), OR a single dd<br>image would work for LiveView also, but needs to be readable from Win.
<br>I can't seem to use "dd if=/dev/sda of=/dev/sdb " because the drives are<br>of differing geometry. (I tried anyway but got something like 116Kb/sec<br>transfer and gave up :(<br> </pre>
</blockquote>
<pre>Try: dd if=/dev/sda of=/dev/sdb bs=4000000<br><br>If your USB adapter is 1.0, it's not going to get faster. I get much<br>better speeds than that on my USB2 adapter, though. Using the<br>larger block size makes a big difference.
<br><br> </pre>
<blockquote type="cite">
<pre>I can't use "dd if=/dev/sda1 of=/mnt/sdb1/winxp.img" because I need to<br>format the target drive as FAT32 to be readable under Win and Linux and<br>obviously you can't have a 37GB file on FAT32.<br>
</pre>
</blockquote>
<pre>Just dd it over directly. You can correct the partition table with<br>parted or fstab after it's done. I just did this the other day from<br>a Linux rescue CD.<br><br>dd if=/dev/sda of=/dev/sdb bs=4000000<br>
fdisk /dev/sdb<br>...<br>ntfsresize /dev/sdb1<br><br>With a little google searching, you can find how to merge the boot<br>sector from the source drive onto the destination drive. Once you<br>have that knowledge, you can just dd the partition after creating one
<br>of the same or slightly larger size on the dest drive.<br><br>dd if=/dev/sda1 of=/dev/sdb1 bs=4000000<br><br>To view your speed while dd is running, switch consoles and hit it with:<br>kill -USR1 `ps -ef |awk '/dd if/{print $2}'`
<br>(kill -USR1 the pid of dd)<br><br>-Al Tobey<br><br> </pre>
<blockquote type="cite">
<pre>So how does one make an exact copy of a drive to a non-identical drive?<br><br>_______________________________________________<br>grlug mailing list<br><a href="mailto:grlug@grlug.org" target="_blank" DEFANGED_onclick="return top.js.OpenExtLink(window,event,this)">
grlug@grlug.org</a>
<a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug" target="_blank" DEFANGED_onclick="return top.js.OpenExtLink(window,event,this)">http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug</a>
</pre>
</blockquote>
<pre> </pre>
</blockquote>
<br>
</DEFANGED_span></p><DEFANGED_div><p><DEFANGED_div></p><DEFANGED_div>
</p><DEFANGED_div><br>_______________________________________________<br>grlug mailing list<br><a DEFANGED_onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:grlug@grlug.org">grlug@grlug.org</a><br><a DEFANGED_onclick="return top.js.OpenExtLink(window,event,this)" href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug" target="_blank">
http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug</a><br><br></blockquote></p><DEFANGED_div><br><br clear="all"><br>-- <br>In vino veritas.<br> [In wine there is truth.]<br> -- Pliny