Robert Lewko wrote: > The other thing that accounts for space is what is called "internal > fragmentation". "Internal Fragmentation" is the unused space at the end > of the last block in a sequential file. This is especially true if > there are lots of small files.
Good point. Nautilus may just be counting the "official" size of the files whereas "du" counts the actual space allocated to the files. So, on a filesystem with a 4K block size, a 25 byte file takes up 4K as does a 3.5K file. It really gets entertaining when you have files with holes in them. Then you can have the file size be, say, 150GB and have it only take up, say, 10MB. That means it is theoretically possible to create a file larger than the size of your file system and it is also, therefore, possible to get a "disk full" error when writing to the middle of a file. How's that for mind-blowing? So, in the presence of holes, du will likely report a smaller size than the actual apparent file size. On the other hand, du will normally report a larger usage count when there are no holes due to the "wasted" space at the end of each file. Depending on how many small files there are (i.e. how many files have a significant amount of wasted space in the final block), you can get an astoundingly high discrepancy. > > On 10/10/06, *Jon* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: > > William Astle wrote: > > "du" will count all the files and folders, including the "hidden" > ones > > that start with a ".". Nautilus probably isn't counting those. > > Aha! That sounds reasonable to me. Thanks! > > J > > -- > http://www.jonwatson.ca > +1.403.875.6048 > > _______________________________________________ > clug-talk mailing list > [email protected] <mailto:[email protected]> > http://clug.ca/mailman/listinfo/clug-talk_clug.ca > Mailing List Guidelines (http://clug.ca/ml_guidelines.php > <http://clug.ca/ml_guidelines.php>) > **Please remove these lines when replying > > > > ------------------------------------------------------------------------ > > _______________________________________________ > clug-talk mailing list > [email protected] > http://clug.ca/mailman/listinfo/clug-talk_clug.ca > Mailing List Guidelines (http://clug.ca/ml_guidelines.php) > **Please remove these lines when replying -- William Astle finger [EMAIL PROTECTED] for further information Geek Code V3.12: GCS/M/S d- s+:+ !a C++ UL++++$ P++ L+++ !E W++ !N w--- !D !M PS PE V-- Y+ PGP t+@ 5++ X !R tv+@ b+++@ !DI D? G e++ h+ y? _______________________________________________ clug-talk mailing list [email protected] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying

