0 1 2 2^12+2 +------+-----+-------------------+------------------------------------------------- |boot |super| FAT | |sector|block| | +------+-----+-------------------+-------------------------------------------------
the i-node data structure +--------------------+ |size, | |permission, | |mode, | |type, | |nlink | |... | +--------------------+ |direct pointer | |--------------------| |direct pointer | |... | |--------------------| |1-indirect pointer | |--------------------| |2-indirect pointer | |--------------------| |3-indirect pointer | +--------------------+
(approximate) disk layout of an i-node based FS 0 1 2 +------+-----+--------------+------------+----------------------------------+---------------------------- |boot |super| data block | inode | inode table | data blocks |sector|block| free bitmap | free bitmap| i.e. an array of i-nodes | +------+-----+--------------+------------+----------------------------------+-----------------------------