What do inodes store?
Metadata for files in a Linux filesystem
What metadata is stored in an inode?
Ownership, permissions, and location on disk
Do inodes store file names or contents?
No
What is an inode in simple terms?
An ID card for each file, directory, or object in the filesystem
Does every file require an inode?
Yes, regardless of file size
What are directories in relation to inodes?
Special files that map filenames to inode numbers
Does each directory require its own inode?
Yes
When does inode exhaustion occur?
When inode limit is reached before disk space is full
What happens during inode exhaustion?
Prevents creation of new files despite available storage space
How to monitor inode usage?
Use df -i to display inode usage statistics
What does df -i output include?
Inodes, Iused, Ifree, IUse%, Mounted on
When are inodes allocated?
During filesystem creation
Example command to create filesystem and allocate inodes?
mkfs -t ext4 /dev/sdb1
Why customize inode allocation?
For large numbers of small files
How are files and directories tied to inodes?
Through inode numbers
What do hard links do?
Point multiple filenames to the same inode
Command to display inode numbers?
ls -i
Example of hard link sharing inode?
example.txt and example-hardlink.txt share the same inode number