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). I looked after how to check it: blockdev --getbsz /dev/sdc7 4096 blockdev --getbsz /dev/sdc8 4096 Yes, they have the same block size
I formatted both partitions as ext4 using Leap 42.2 yast2 partition tool with its default options. I installed Leap 42.2 onto partition 7. Partition 6 also has Leap 42.2 installed earlier. I booted part6 Leap 42.2, mounted partitions 7 and 8 (as /mnt1 and /mnt2) and rsynced everything from partition 7 to 8:
rsync -a /mnt1/ /mnt2
Interestingly the file systems usage is not the same for the two partitions (part7 is mnt1, part8 is mnt2):
df -h Filesystem Size Used Avail Use% Mounted on
/dev/sdc7 28G 6.1G 21G 24% /mnt1 /dev/sdc8 28G 6.7G 20G 26% /mnt2
Why is this difference?
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? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org