Porting a system from RedHat to Ubuntu yields smaller directories
Hello,
Has anyone ported a system from Red Hat to Ubuntu before? (or vice versa). I have a system that I recently upgraded and made the switch from Red Hat 4 to Ubuntu 12.04. to move the files over from one system to the next I ran an rsync. The result was the same number of files but the size on the directory was smaller. Is this normal? Or is there a problem that I'm not seeing. I thought maybe the two systems either handle disk usage differently or maybe used a different character encoding...let me know if you've run into this. Thanks! |
What does "du --apparent-size -s /some/path" return on both systems?
|
a wild guess
the difference in the file systems on the ancient rhel4 and the modern Ubuntu 12.04 what was being used on rhel4 ? And what is currently being used on 12.04 ( LTS -- guessing) ? |
A directory (that is, the directory file itself) never shrinks. Once it has grown to accommodate a large number of file names, that space is never released. When you make a copy of that directory, the new directory will be sized for the current number of files.
|
Quote:
Code:
# du --apparent-size -s /home/user/ Code:
# du --apparent-size -s /home/user/ |
Quote:
|
Quote:
|
Quote:
Code:
du --apparent-size -s /home/user/ |
Quote:
|
All times are GMT -5. The time now is 01:34 PM. |