• 0 Posts
  • 55 Comments
Joined 7 months ago
cake
Cake day: November 28th, 2025

help-circle

  • oats@piefed.ziptolinuxmemes@lemmy.worldWho is using my file?
    link
    fedilink
    English
    arrow-up
    4
    ·
    21 hours ago

    Extremely simplified:

    Your file system consists of a whole lot of blocks to write data to. Let’s say you have a block size of 512kB, so a 4MB file would span 8 blocks. A 3.7MB file would span 8 blocks, too, as the remaining space can’t get used otherwise.

    Now to get what file exists on which blocks, there’s a large index table, consisting of a number of index nodes (shortened to inode). Each inode saves multiple data fields of a file, like its name, owner, creation data, and the files blocks.

    If you link a file to a second name (hard link) a second inode will get created that points to the same blocks.

    That’s about it. Used to be important to chose the right inode size and count on filesystem creation for the average data you’ll save on the filesystem, as inodes have a fixed count, and the index table takes disk space, too. Too many inodes and you waste space that you could use for precious data, too few inodes and you can’t save new files even when you have free data blocks. With growing disk sizes people just went with massive indexes, who cares about a few wasted megs.

    Modern filesystems (like ext3 and up) introduced journals, which complicate things.



  • You mean like in your kitchen? Too much metal, you’ll damage your magnetron.

    You could use thermite and melt it to a pulp. Dangerous as well, though.

    Really, just encrypt. Your CPU has AES extensions, performance impact is negligible. Simple, clean, and a protection against involuntary decommission as well.




  • “I’ll get to it, eventually” would ruin the meme but be more fitting, in my opinion.

    Had multiple occasions where people fought against filling disks and just couldn’t see why. Well, that 10 gig log file you deleted two weeks ago? It’s 20 gig now, and still being written to.

    lsof shows stuff like that.














  • Switched from keepassxc to vaultwarden a while ago (mostly due to the horrible syncing experience, and to use the same password manager as my family so I could help out better).

    It’s a selfhosted and open source version of the Bitwarden server, you’ll use the (open source) Bitwarden clients. So its all features of Bitwarden plus full transparency