<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap:break-word;line-break:after-white-space"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;margin:0px;line-height:auto"><br></div><p class="airmail_on">On November 12, 2018 at 8:20:54 PM, <a href="mailto:jep200404@columbus.rr.com">jep200404@columbus.rr.com</a> (<a href="mailto:jep200404@columbus.rr.com">jep200404@columbus.rr.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>On Mon, 12 Nov 2018 19:02:25 -0300, Rick Hornsby &lt;<a href="mailto:richardjhornsby@gmail.com">richardjhornsby@gmail.com</a>&gt; wrote:<br></div></div></span></blockquote><div><br></div><div>In response to one of the other replies — I definitely need to preserve the boot loader and boot sector, so copying the whole SD card is required and seems like the most straight-forward approach. I don’t think copying the two individual partitions will work. First, because it would copy the 14GB ext partition as 14GB (the problem I’m trying to solve), and that doesn’t preserve the boot loader portion.</div><div><br></div><div>I _think_ Raspian uses Grub, but offhand I don’t remember. Whatever it uses, I don’t want to introduce any changes to the boot loader.</div><div><br></div><div><blockquote type="cite" class="clean_bq" style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span><div><div>&gt; Maybe I’m not understanding what “sparse” means in this context?<br><br>Maybe so.<br><br>What does sparse mean to you?<br><br>What does the following mean to you?<br><br>[rjh@colug ~]$ man dd | grep sparse<br>sparse try to seek rather than write the output for NUL input blocks<br>[rjh@colug ~]$</div></div></span></blockquote></div><p>So in my head, sparse meant it the way that it is meant in terms of VM disks (?) when configured to be sparse (lazy?), particularly VMware. A sparse disk only uses the amount of physical storage required. So a 40GB disk may only consume 3GB of underlying physical disk. In this case, I was thinking it meant that I could only write the first X blocks that were actually in use, or rather, that were not 0x00. Essentially at the point where the data stopped and 0x00 started and went to the end of the disk could just be ignored/truncated and not written to the image.</p><p>I began to question myself because of exactly what you quoted from the man page. If a sequential write seeks, it simply bypasses sequences of 0x00 bytes moving the write pointer to the next non-null byte where it begins writing again. The result is still a 16GB image file. The advantage is that dd doesn’t spend the time writing a long sequence of 0x00. I think.</p><p>hmm.</p><p><br></p></body></html>