- 2073 Bhadra · 3+2 marks
Purposes of OS; boot sector protection
Short answer
The OS provides convenience, efficient resource management, program execution, protection, and the ability to evolve. Preventing user access to the boot sector is essential because it holds the boot code and partition table; modification could install a boot virus, make the system unbootable, or corrupt disk partitioning.
What are the primary purposes of an operating system? Explain. Why should the operating system prevent users from accessing the boot sector?
Primary purposes of an operating system
- Convenience: gives users a simple interface (shell/GUI, system calls, files) so that they need not know the hardware details; it acts as an extended machine.
- Efficient resource management: allocates the CPU, memory, disk and I/O devices fairly among programs and keeps them busy; it acts as a resource manager.
- Providing an environment to run programs: loads, runs and terminates programs and provides services such as file handling and I/O.
- Protection and security: stops processes and users from interfering with each other or with the OS.
- Ability to evolve: allows new hardware and system functions to be added without disturbing application programs.
Why users must be prevented from accessing the boot sector
The boot sector (master boot record) holds the small bootstrap program that loads the operating system when the computer is switched on.
- If a user program could write to it, a boot-sector virus could be installed that runs before the OS and its protection start, and infects the system on every boot.
- Accidental or malicious modification or deletion would make the system unbootable, cutting off access to all data.
- The boot sector also holds the partition table; corrupting it makes the disk unreadable.
- Attackers could change the boot code to load a fake OS and steal passwords.
Hence the OS performs all disk access in kernel mode and allows only privileged utilities to write to the boot sector.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- OS abstraction, extended machine, system call · Operating System, chapter 1
- Protection domain and ACL · Operating System, chapter 8 · asked 2×
- Short note: Protection domain · Operating System, chapter 8 · asked 2×
- What is an OS; its functions · Operating System, chapter 1 · asked 2×
- Functions of OS and microkernel · Operating System, chapter 1
- OS definition and types of OS · Operating System, chapter 1
- Primary and backup protection · Switchgear and Protection, chapter 1 · asked 3×
- Features of a typical operating system · Microprocessor, chapter 6 · asked 3×
- Operating system layers · Distributed System, chapter 3
- Real-time system and real-time OS components · Software Engineering, chapter 4