Module 5: File Systems and Storage Management
1. What is a File System?
A file system is a set of rules and methods that an operating system uses to store, organize,
and retrieve data on storage devices.
2. What are the different types of File Systems?
- Disk-Based File Systems: FAT32, NTFS, ext4.
- Network File Systems: NFS, SMB.
- Memory-Based File Systems: tmpfs, ramfs.
- Database File Systems: DBFS.
3. What are File System Allocation Methods?
- Contiguous Allocation: Stores file in a continuous block.
- Linked Allocation: Uses pointers to link scattered blocks.
- Indexed Allocation: Uses an index table for quick access.
4. What is a Directory Structure in an OS?
- Single-Level Directory
- Two-Level Directory
- Tree-Structured Directory
- Acyclic Graph Directory
- General Graph Directory
5. What are File Access Methods?
- Sequential Access: Reads data in order.
- Direct Access: Jump to any part of the file.
- Indexed Access: Uses an index table for fast access.
6. What are Disk Scheduling Algorithms?
- FCFS, SSTF, SCAN, C-SCAN, LOOK, C-LOOK.
7. What is RAID (Redundant Array of Independent Disks)?
- RAID 0, RAID 1, RAID 5, RAID 10 for performance and reliability.
8. What is Disk Fragmentation?
- Internal and External Fragmentation.
- Solutions: Defragmentation, SSD TRIM, better file systems.
9. Explain Virtual Memory and Paging.
- Virtual memory allows using hard disk as extra RAM.
- Paging divides memory into fixed-size blocks.
10. Explain Swap Space in an OS.
- Swap space acts as an extension of RAM, storing inactive processes.