A program like partimage will copy only the sectors that are already in use, but it <br>requires that the destination partition be at least as big as the original (otherwise<br>it would be required to relocate used sectors that are near the end of the parttition).<br>
<br>The only real way around your problem would be to resize2fs to resize the filesystem<br>(not the partition) to  a bit over 1GB At that point you could safely copy only the first<br>Gig of the partition (whatever size you changed the filesystem to).  You could then <br>
(if you wanted to) resize the filesystem back to fill the partition. <br><br>If you just need the data from the partition archived, and don't need it to be live, <br>then you can just use partimage to dump the used sectors, into a file... When you <br>
need to reconstitute the filesystem, however, partimage will want to create a filesystem<br>the same size as the original. <br><br><div class="gmail_quote">On Fri, Jun 19, 2009 at 4:42 PM, Gregoire Gentil <span dir="ltr"><<a href="mailto:gregoire@gentil.com">gregoire@gentil.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>
<br>
I need to duplicate a huge number of identical 8GB SD cards on which I<br>
have 1GB of data at the beginning of the disk on various partitions and<br>
then a 7GB ext3 partition which is rather empty (just a few MB of data).<br>
<br>
The duplicator device enables me to select which sectors I can<br>
binary-duplicate. I would love to divide by 8 my duplication time, by<br>
duplicating only the first GB and then the beginning of the 7GB ext3<br>
partition.<br>
<br>
When I do a mkfs.ext3, I see that the super-block is written to various<br>
locations of the partition which is not good for the optimization I<br>
would like to do.<br>
<br>
Anyone can advise how I could optimize my duplication? What are my<br>
options? Would it be the same situation for ext2? Meaning where is the<br>
journal written on the ext3 partition? Is there a single version or<br>
multiple versions?<br>
<br>
Thanks in advance for any answer or pointer,<br></blockquote></div><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>