I recently set up an NFS server on my Ubuntu server and I'm currently in the process of migrating my files from HFS+ HDDs to ext4. I've run into a problem however where the receiving disk (ext4 format) is running out of space before the transfer is complete. Both drives are 2 TB external USB drives and the receiving drive was newly formatted so there shouldn't have been anything on it.
I'm aware that the default block size for ext4 is 4K and, as expected, comparing
du /media/[Receiving Drive]/*
du --apparent-size /media/[Receiving Drive]/*
Shows that most (if not all) files are using an additional 4K on the disk. The HFS+ drive, which I've unfortunately already formatted to ext4 so I won't be able to get any info on, had a little over 12 GB of free space however based on current usage of the ext4 disk and the amount of files I've already transferred over, I'm missing over 200 GB of space!
I have absolutely no idea where this discrepancy is coming from because at most the addition of 4K to every single file would be significantly less than 1 GB, much less 200.
Both drives are now formatted as ext4 with a GUID Partition Table and diskutility shows that there's a ~700MB difference in capacity between them (another mystery).
Suffice it to say, I'm stuck. Any suggestions?