IT lexicon › Infra & Ops › Orphan file

Orphan file

Infra & Ops På svenska → Updated: 2026-11-16

A file whose directory entry is deleted but whose inode remains in use; occurs after a filesystem crash and is recovered by fsck.

A filesystem crash can leave an inode marked "allocated" and referencing valid data blocks, but no directory entry points to it anymore. fsck finds these orphaned inodes by scanning the inode table and cross-checking against all inodes referenced in directory structures. They are then moved to the `lost+found` directory under a new name like `#12345`, allowing the user to inspect and delete or rename them.

It is a symptom of failed journaling—NTFS, ext3/4, and XFS are journaled so this becomes rare. Older FAT and plain ext2 lacked journaling and were often littered with orphan files after ungraceful shutdown.

← Back to the lexicon