PCA2
PCA2
● Data Blocks: These blocks store the actual contents of files, including
text, binary data, and metadata associated with files or directories.
Data blocks hold the information that users interact with when
accessing files.
● Inode Blocks: Inode blocks contain metadata about files and
directories, such as permissions, ownership, timestamps, and pointers
to data blocks. Each file or directory in the file system is associated
with an inode, and these inodes are stored in inode blocks.
● Superblock: The superblock is a crucial block at the beginning of a
file system that contains essential information about the file system,
such as its size, block size, inode count, and other parameters. It
serves as a metadata repository for the entire file system.
● Block Bitmap: The block bitmap is a data structure that keeps track
of the allocation status of data blocks in the file system. It maintains a
bitmap of used and free data blocks, allowing the file system to
efficiently manage block allocation and deallocation.
● Inode Bitmap: Similar to the block bitmap, the inode bitmap tracks
the allocation status of inodes in the file system. It maintains a bitmap
of used and free inodes, enabling the file system to manage inode
allocation and deallocation efficiently.
● Indirect Blocks: In some file systems, indirect blocks are used to
store additional pointers to data blocks when the size of a file exceeds
a certain threshold. Indirect blocks provide a level of indirection,
allowing efficient access to large files by storing pointers to other
blocks containing data.
● ln (Link)
Syntax: ln [OPTION]... TARGET LINK_NAME
Description: Creates a hard or symbolic link to a file or directory.
Options:
❖ -s, --symbolic: Create a symbolic link instead of a hard link.
● umount (Unmount)
Syntax: umount [options] target
Description: Unmounts a mounted filesystem.
Options:
❖ -f, --force: Force unmounting (even if busy).