(a) Boot block ------------------------------ (iv) Code for making OS ready
(b) Super block------------------------------ (i) Information about file system
(c) Inode table ------------------------------ (ii) Information about file
(d) Data block -------------------------------(iii) Storage space
In detail explanation :
Each file system contains:
- 1. a boot block located in the first few sectors of a file system. The boot block contains the initial bootstrap program used to load the operating system.
-
Typically, the first sector contains a bootstrap program that reads in a larger bootstrap program from the next few sectors, and so forth.
- 2. a super block describes the state of the file system: the total size of the partition, the block size, pointers to a list of free blocks, the inode number of the root directory, magic number, etc.
-
- 3. a linear array of inodes (short for ``index nodes''). There is a one to one mapping of files to inodes and vice versa. An inode is identified by its ``inode number'', which contains the information needed to find the inode itself on the disk
-
Thus, while users think of files in terms of file names, Unix thinks of files in terms of inodes.
- 4. data blocks blocks containing the actual contents of files