Just started dumping data from my individual SSDs onto an old laptop one by one so I can reformat the drives as EXT4 instead of xFAT or FAT32 or whatever I had it as before. I wasn't aware that EXT4 was better suited for (and exclusive to) Linux until recently, and I'm still new to it. Is it much more efficient on storage space or something?

Like I said, I've been copying files to and from an old laptop that holds onto them while I format the drives, but this laptop is old af and takes several hours to copy 1TB, so I often leave it going while I sleep. I woke up this morning to no errors or anything, but the files copied to the drive were ~600gb worth when they were ~800gb before. Surely there isn't that much of a difference? Any idea what could be causing this?

you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 3 months ago

I would first check carefully that all the files were actually copied. Often the simplest explanation is the correct one, in this case that some files weren't copied for some reason.

That said, I have seen something similar once, and the reason was something called sparse files. We had some database backup files on a FAT32 partition (don't ask why), and we copied them to an ext4 partition. We noticed that the copied files occupied about 1/4 less space than they did on FAT32. Turned out that the backup files contained large amounts of "empty" space (zeros bacially) and because FAT file systems don't support sparse files, that empty space occupied physical disk space on FAT32. On ext4 however, those empty parts didn't consume any physical disk space and thus the total disk usage was way lower.

Does your data include disk images for example? If so, this could be the reason.

  • source