I'm copying a directory from one mount point to another, yet I see a size increase between the two and I'm wondering why that is.
My first mount point is named /home/directory/mount1, and inside it I have a "bin" directory, where, when I do du -hs bin
, I see it has a size of 7.9 M. I copy this over to /home/directory/mount2 using cp -ap bin /home/directory/mount2
from inside /home/directory/mount1. Then, however, when I do du -hs bin
inside /home/directory/mount2, I get a size of 8.3M!
I'm logged in as root and from what I can tell, the exact same files in the mount1 bin directory were copied over to mount2. What is with the size discrepancy? It was also present when I did cp -r bin /home/directory/mount2
.
Edit: Upon further examination, every file in the contents of bin in mount2 is 4K larger than its equivalent in mount1/bin.