I was in the root direction,
/, and I did
ls -lah for whatever reason and looked at the folder sizes. I noticed that the folder
lost+found has a size of 16K, while all of the other directories has a size of 4K.
/sys are different sizes as well, but
lost+found was the one I was initially curious about.
People have pointed out that
/dev is because it is a different file system, and that
/sys are virtual file systems so they don't follow the same rules as a normal one.
Does anyone have an explanation for this (the
lost+found directory)? From a quick Google I couldn't seem to find an answer
-rw-r--r-- 1 root root 152 Jul 2 11:47 extlinux.conf drwxr-xr-x 3 root root 4.0K Nov 7 01:51 home lrwxrwxrwx 1 root root 30 Jul 2 11:47 initrd.img -> /boot/initrd.img-3.2.0-4-amd64 -r--r--r-- 1 root root 32K Jul 2 11:47 ldlinux.sys drwxr-xr-x 12 root root 4.0K Jul 2 11:46 lib drwxr-xr-x 2 root root 4.0K Nov 7 01:43 lib64 drwx------ 2 root root 16K Jul 2 11:44 lost+found drwxr-xr-x 2 root root 4.0K Jul 2 11:46 media drwxr-xr-x 2 root root 4.0K Dec 24 2014 mnt drwxr-xr-x 4 root root 4.0K Nov 14 22:00 opt dr-xr-xr-x 85 root root 0 Nov 9 19:51 proc drwx------ 3 root root 4.0K Nov 15 21:01 root drwxr-xr-x 15 root root 480 Nov 15 23:26 run drwxr-xr-x 2 root root 4.0K Nov 7 01:43 sbin
Edit: I see the question What does size of a directory mean in output of 'ls -l' command? which kind of answers the question, but all new directories I make are 4.0K and
lost+found to my knowledge has never had any info in it to warrant a larger size (this is a relatively new install, no uncalled for shutdowns). Also, for clarification, the filesystem type is ext3.
Edit 2: These files may be more helpful to people that can actually interpret them, but they still doesn't explain why /run is different, but someone suggested that this is because it is mounted (verified with
df -h). It's also created by the
mklost+found command, but when that command is run the directory size is shown as 49K (12 blocks) instead of 16K (4 blocks). The mke2fs.c file explains the 16K file with the line
if ((lpf_size += fs->blocksize) >= 16*1024), but not the 49k.