<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> <br> <div id="bloop_sign_1542133141279811840" class="bloop_sign"></div> <br><p class="airmail_on">On November 13, 2018 at 11:13:31, Matthew Hyclak (<a href="mailto:hyclak@gmail.com">hyclak@gmail.com</a>) wrote:</p> <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></div><div><div dir="ltr"><div dir="ltr">Been a while since I did this, but I believe you have to make sure the filesystem you want to be sparse actually contains 0's in the places you'd like to be sparse before creating the sparse file.<div><br></div><div><a href="https://unix.stackexchange.com/questions/44234/clear-unused-space-with-zeros-ext3-ext4">https://unix.stackexchange.com/questions/44234/clear-unused-space-with-zeros-ext3-ext4</a><span class="Apple-converted-space"> </span>looks like a good starting point.</div></div></div></div></div></span></blockquote></div><p>Thanks. I had seen that thread. I used zerofree, but it didn’t seem to matter. Because of your link though, I read farther down the page to some information about cp with the ‘—sparse=always’ flag, and some hints about reported size between ls and du.</p><p>Interestingly enough, I messed around and got the following:</p><p>cp —sparse=always 16GB_file sparse_file<span class="Apple-tab-span" style="white-space:pre">        </span>-> 3.7GB, as per du. ls still says it’s 16GB.</p><div></div></body></html>