On 2017-06-13 15:44, Istvan Gabor wrote:
On Tue, 13 Jun 2017 15:18:56 +0200, Carlos E. R. wrote:
On 2017-06-13 15:14, Istvan Gabor wrote:
Hello:
Shortly: I have to identical partitions I formatted with the same tool. I copied everything from one partition to the other still the file system usage is different. Why?
Longer version:
I have two extended partitions on the same hard disks. They have identical sizes and block numbers. fdisk report is:
Device Boot Start End Blocks Id System /dev/sdc7 399155791 457744782 29294496 83 Linux /dev/sdc8 457744846 516333837 29294496 83 Linux
Are they both the same sector size? New disks sectors are 4 KiB.
Do you mean block size? I suppose yes, because I formatted the partitions using the same tool with the same options (as far as I know).
Format doesn't matter, it is a hardware issue. Example: Telcontar:~ # fdisk -l /dev/sda Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes
Do you have sparse files, perhaps?
I don't exactly know what a spare file is. How can I find out if I have any?
Sparse, not spare :-) Files with holes. You can create a gigabyte file and only one megabyte block in the middle has data, the rest doesn't exist. Not that the rest (the holes) contain zeroes, but no: it contains nothing, it doesn't exist on disk. Such a file would use only one megabyte of disk space. Who uses that? Well, some download utilities: they populate the regions of the file that they manage to download, and the rest are holes, conserving disk space. They are seldom used (I have only seen them with a p2p utility), and right now, I do not remember how to find out if they exist on a partition. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)