[quote author=“gr00vy0ne”]
Formatting creates multiple tracks with multiple sectors within each track. Because the sectors must be a fixed size (bytes), it’s possible for waste to occur. For instance, if sectors are 4Kb in size and you save a file that’s only 1Kb, then you lose the rest of that space. A 5Kb file will use 2 sectors (8Kb). So, that will also explain for the loss of space.
Well… almost. For memory technology devices, like USB sticks and other types of flash memory, there of course are no tracks. There may be sectors (there almost certainly are) and there may even be some kind of “emulated tracks” (i.e. for PCMCIA/Cardbus Flash Cards that simulate an IDE harddisk), but even then - or even on true disks with true tracks and true sectors - the sector size isn’t necessarily related to the chunk size of the filesystem.
And that’s the important thing: how the filesystem organizes the data. Let’s take FAT for example. In FAT, the smallest allocation unit is called a “cluster”. That cluster size can be totally different from the sector size. You may specify this while creating the filesystem, e.g., you may specify a cluster size of 16384 bytes or just 4096 bytes. The sector size of most media, however, is 512 (or 2048 for data CDs, flash sometimes has 256 bytes).
Most filesystems behave the same. I believe I heard that ReiserFS doesn’t use any kind of chunk, so that a 2 byte file really just uses up 2 bytes (+ metadata), but I didn’t verify this.
NTFS itself also takes up some of the space because it reserves MFT space for security descriptions and for its journaling files system. This is to ensure that there’s less chance of data loss in the event of power failure during the writing of data.
Yes, and even more. Every read/write filesystem basically has tons of metadata. FAT has a huge File Allocation Table, a FAT (that’s why FAT is called FAT, because it has a fat FAT).
That said: the larger the media, the larger the metadata, the greater the loss. But not relatively. Most of the time, the loss stays in the same percent range.
Julien