You can probably get away with reading 1MB at a time. This will be more efficient also. <br><br>Good luck, document well, this will be interesting to read once you have repaired as much as you can.<br><br>Dan<br><br><div class="gmail_quote">
On Mon, Jul 25, 2011 at 3:34 PM, David L. Willson <span dir="ltr"><<a href="mailto:DLWillson@thegeek.nu">DLWillson@thegeek.nu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
sda and sdb will get dd'd into files on the great big new drive, as soon as I have time. For now, they've been pulled out of the system and are waiting patiently.<br>
<br>
What I need is a script that goes something like:<br>
<br>
Read a block from sda, read a block from sdb.<br>
If they're the same, overwrite the block from sdb with zeroes.<br>
If they're different, quit.<br>
Read the next block from sda and sdb. Repeat.<br>
<br>
Since nobody's produced such a thing, I suppose I'll have to write it...<br>
<div class="im"><br>
David L. Willson<br>
Trainer, Engineer, Enthusiast<br>
RHCE MCT MCSE Network+ A+ Linux+ LPIC-1 NovellCLA UbuntuCP<br>
tel://720.333.LANS<br>
Freedom is better when you earn it. Learn Linux.<br>
<br>
</div><div><div></div><div class="h5">----- Original Message -----<br>
> I suspect that you don't have any other backup of the sdb drive?<br>
> yeah. I've been there. Sucks to be you right now. :-(<br>
><br>
> At this point the most important thing is to preserve the state of<br>
> what you have. I hate to say it but you might want to dd what's left<br>
> of /dev/sdb to some static storage like a usb drive.<br>
> Step 2 is to try to fsck with some alternate superblock. With luck<br>
> you'll get a file system back from that. After that its pretty much<br>
> catch as catch can as to what will work.<br>
> If you know how much got over written you can write back that amount<br>
> from a newfs'd drive and retry the fsck.<br>
><br>
> On Mon, Jul 25, 2011 at 3:00 PM, David L. Willson<br>
> <<a href="mailto:DLWillson@thegeek.nu">DLWillson@thegeek.nu</a>> wrote:<br>
> > Damn it, dd! Stop doing what I say! Or at least warn me... Ugh...<br>
> ><br>
> > I ~meant~: $ dd if=/dev/sda of=/dev/sdc<br>
> > but I said: $ dd if=/dev/sda of=/dev/sdb<br>
> ><br>
> > /dev/sdb ~had~ important stuph on it.<br>
> ><br>
> > Now, it has an in-determinate amount of garbage copied verbatim<br>
> > from<br>
> > /dev/sda, as much as it could copy before I read what I'd written,<br>
> > shrieked,<br>
> > and filled the keyboard buffer with <CTRL>+c's followed by some<br>
> > important<br>
> > stuph I might never see again.<br>
> ><br>
> > Sigh...<br>
> ><br>
> > I think step 0 of my "get some back" plan is to zero out the bit of<br>
> > /dev/sdb<br>
> > that matches /dev/sda, in order to get rid of the bogus information<br>
> > at the<br>
> > beginning of the disk. Anyone have a script handy?<br>
> ><br>
> > Links for when I get to steps 1-99?<br>
> ><br>
> > David L. Willson<br>
> > Trainer, Engineer, Enthusiast<br>
> > RHCE MCT MCSE Network+ A+ Linux+ LPIC-1 NovellCLA UbuntuCP<br>
> > tel://720.333.LANS<br>
> > Freedom is better when you earn it. Learn Linux.<br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > clue mailing list: <a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a><br>
> > For information, account preferences, or to unsubscribe see:<br>
> > <a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a><br>
> ><br>
> _______________________________________________<br>
> clue mailing list: <a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a><br>
> For information, account preferences, or to unsubscribe see:<br>
> <a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a><br>
><br>
_______________________________________________<br>
clue mailing list: <a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a><br>
For information, account preferences, or to unsubscribe see:<br>
<a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a><br>
</div></div></blockquote></div><br>