Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    A 1-byte file would typically take one block, not 8. Creating a hard link doesn't create an inode at all: one file is one inode no matter how many links there are to the file. Creating a hard link only requires space for the directory entry. Commented Feb 20, 2018 at 12:46
  • Thanks for the corrections, admittedly my memory re: studying ext2 in depth is now a little fuzzy. I was following the output of stat re: the block count - it did feel excessive but that's what's there. I'll correct the answer. Commented Feb 20, 2018 at 15:24
  • 2
    That's because 1 ext2 block = 8 stat blocks, if the ext2 filesystem uses 4kB blocks: stat counts in 512-byte blocks for historical reasons. See unix.stackexchange.com/questions/14409/… Commented Feb 20, 2018 at 16:10