hoodedice wrote:Am I wrong if I say that supposing a sector has a size of 8 B, and I have a 1 B file, then does the 1 B file take up 8 B on disk?
no, you are not.
actually the 1 byte file would occupy way more than a sector (512 bytes), depending on the cluster/node size of the file-system.
all file-systems have this overhead, usually called slack space.
a related concept is fragmentation, and again all file-systems suffer from fragmentation,ex.: fat32 more than zfs or ext4. but even ext4 has his fragmentation level.
ntfs, despite commom sense can get quite fragmented too.
its common assumption that fragmentation can ake slack worse.(though ive never seen a conclusive explanation)
otw: most systems allow selecting file-system wide clustering/node size to match usage.
otw2: im using touch, its hard to type