Q1) Explain different File organization methods / File allocation methods.
File Allocation refers to the method used by an operating system to allocate disk space to files. It determines how file
data is stored and accessed on a storage device.
Q2) Explain Disk organization within the OS.
Disk Organization refers to how an operating system structures, manages, and stores data on a disk (HDD/SSD). It
defines how the disk is divided, how data is arranged, and how the OS accesses and tracks stored information.
2. Sectors
Each track is divided into fixed-size sectors
Smallest unit of storage on a disk
Standard sector size = 512 bytes (modern = 4096 bytes)
The OS reads/writes data sector by sector
3. Cylinders
A cylinder is the set of all tracks at the same position across all disk platters
Used to minimize seek time by grouping related data
4. Clusters (Allocation Units)
A cluster is a group of consecutive sectors
Smallest unit of disk space allocated to a file
Typical sizes: 4KB, 8KB, 16KB, 32KB
Larger clusters = less overhead but more internal fragmentation
5. Partitions
The disk is divided into logical sections called partitions.
Partition Type Description
Primary Partition Main bootable partition (max 4 per disk)
Extended Partition Container for multiple logical partitions
Logical Partition Sub-division inside an extended partition
Swap Partition Used as virtual memory by the OS
6. Master Boot Record (MBR)
Located at the very first sector of the disk
Contains the bootloader and partition table
Tells the BIOS where to find the OS to load
Supports disks up to 2TB (GPT used for larger disks)
7. Boot Block
Present at the beginning of each partition
Contains the bootstrap code to load the OS
Even non-bootable partitions have an empty boot block
8. Super Block
Contains critical metadata about the file system