A simple one would be: <br>dd if=/dev/zero of=PARTIMAGE bs=1M count=184<br>(presuming that your original ISO was 185MB.  -- this leaves up to 1MB of random crap, but (in my mind), that's better than tashing the good bits of data.<br>
<br>You can get more accurate results by varying the block size and the count so that they multiply out properly.<br>modern versions of DD recognize multipliers of K -> kilobytes, M->Megabytes, G->gigabytes <br>  .. and those are the CS units (now called kibibytes, mebibytes, gibibytes), not the marketing units.<br>
<br><br><div class="gmail_quote">On Sat, Jan 22, 2011 at 5:57 AM, Matija Nalis <span dir="ltr"><<a href="mailto:mnalis-ml@voyager.hr">mnalis-ml@voyager.hr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Fri, Jan 21, 2011 at 10:51:20PM +0100, Florian Weber wrote:<br>
> * Keep a copy of your "unrecovered" disk image! You don't want to touch the<br>
>    original disk at all, so be prepared for making mistakes<br>
<br>
</div>yes, that is always the most important step. And be extra extra carefull you<br>
don't nuke it by accident... readonly jumper on the drive (if it has one)<br>
helps.<br>
<div class="im"><br>
> * dd if=/dev/zero of=PARTIMAGE count=ISOSIZE<br>
>    where ISOSIZE is the ISO image's size in bytes<br>
<br>
</div>actually, it is ISO image size in *blocks* [1], so this procedure would<br>
actually destroy 512 times more data than original error... :-|<br>
<br>
Anyway, let us know how it worked out...<br>
<br>
And if this procedure fails you, I'd also second the great experiences with<br>
<a href="http://www.cgsecurity.org/wiki/PhotoRec" target="_blank">http://www.cgsecurity.org/wiki/PhotoRec</a> - works even if filesystem and<br>
partition structures are completely foobared...  If you use it and it works<br>
for you, don't forget to donate to the guy, there's link on the pages.<br>
<br>
[1] by default block size is 512 bytes, can be changed with bs= parametar to<br>
    dd(1) -- note that while you can use 1 byte as an unit, it will be terribly<br>
    slow; so it is probably best to use let's say bs=4K, divide ISOSIZE in bytes<br>
    by 4096, round it down to nearest integer, and use that as count= parameter.<br>
<font color="#888888"><br>
--<br>
Opinions above are GNU-copylefted.<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Ext3-users mailing list<br>
<a href="mailto:Ext3-users@redhat.com">Ext3-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/ext3-users" target="_blank">https://www.redhat.com/mailman/listinfo/ext3-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Stephen Samuel <a href="http://www.bcgreen.com">http://www.bcgreen.com</a>  Software, like love, <br>778-861-7641                              grows when you give it away<br>