Re: claiming unsused space back

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Jul 31, 2017, at 7:50 AM, Fred Smith <fredex@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> 
> On Mon, Jul 31, 2017 at 08:28:49AM -0500, Leroy Tennison wrote:
>> dd to totally fill the partition 
> 
> I may be blind, but I don't seehow that technique can "reclaim" any space.

In addition to the OP’s qemu case, zeroing the free space can also be valuable when building binary OS images from physical media.

The first time you do it with a fresh drive, the disk image contains only what you put onto the drive.  Then later when you update that drive for the next release, you cause files to be overwritten, thus leaving outdated copies of file system blocks laying around which you don’t want to be dd’d into the resulting disk image.

Zeroing the free space not only prevents inclusion of these discarded FS blocks, they compress better, too.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux