in reply to Re: Re: Total size of each Directory
in thread Total size of each Directory

Both CD-ROMs and tar files use sector blocks.

For tar files, the block size is 512 bytes.

The block size on a CD is a somewhat over 2300 bytes. For data, the surplus is used for error detection and correction, so the block size for actual data is 2048 bytes. For details, take a look here or here.

Thus, in summary, for both CD-ROM and for tar files, to get the actual size on disk disk, you need to apply the same calculations, but with different sector sizes than those that apply to the harddisk.

  • Comment on Re: Re: Re: Total size of each Directory

Replies are listed 'Best First'.
Re: Re: Re: Re: Total size of each Directory
by revdiablo (Prior) on Jul 28, 2003 at 23:51 UTC

    I see. So the reason a sum-of-all-file-sizes seems more accurate for cd filesystems and tar files is not that they don't use blocks, just that they use much smaller blocks than most hard disk filesystems? I knew the numbers never worked out perfectly, but never bothered to investigate why. Thanks for this info. bart++