View Single Post
Old 08-13-2016, 07:09 AM   #13
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by coplate View Post
That's an existing ext3 filesystem, based on the twobos posts, i'm assuming some kind of debian on it, but I cant find anything.

All the dd does it expand it from 500MB to 2G
If all you want is bigger, then seek to the last block and write one block of zeros there.
Leave the area from existing end to new end as a sparse file.

Then resize the file system.

ext2/3/4 will create actual blocks in the sparse area as required without any penalties.

Sparse files compress much better that one filled with zeros.
At least if your on a file system that supports sparse files and your compression program can effectively detect them.

But your example (and twobob's) is a nice example of rearranging the deck chairs.
It gives the developer something harmless to do for which they can bill the time.
knc1 is offline   Reply With Quote