HardwareBeginner22 min read

What Is ROM in Computer Hardware?

Reviewed byJohnson Ajibi· Senior Network & Security Engineer · MSc IT Security
On This Page

Quick Definition

ROM stands for Read-Only Memory. It is a storage chip inside your computer or device that keeps data even when the power is turned off. The data on ROM is written during manufacturing and is not meant to be changed by the user. It holds essential instructions, like how to boot up the computer, that the processor needs immediately.

Commonly Confused With

ROMvsRAM

RAM (Random Access Memory) is volatile and used for temporary data storage that the CPU can read and write quickly. ROM is non-volatile and stores permanent firmware. RAM loses data when power is off; ROM does not.

When you open a web browser, the program is loaded from the hard drive into RAM for fast access. The BIOS instructions needed to start the computer are always in ROM.

ROMvsFlash Memory (e.g., SSD)

Flash memory is a type of EEPROM, which is a form of ROM. However, when people say 'ROM' in certification contexts, they often refer specifically to the BIOS/UEFI chip. SSDs are also flash memory but are used for mass storage, not for low-level firmware.

A USB flash drive is flash memory, and you can write files to it. The ROM chip on the motherboard is also flash memory, but it is reserved for firmware and is not used as a file storage drive.

ROMvsCMOS (Complementary Metal-Oxide-Semiconductor)

CMOS refers to a small RAM chip that stores BIOS settings. It is volatile and powered by a small battery on the motherboard. The firmware (BIOS) is stored in ROM, while the settings (like boot order) are stored in CMOS.

When you change the boot order in the BIOS setup, the new setting is saved to CMOS, not to the ROM. The ROM still contains the same firmware program.

Must Know for Exams

ROM appears in multiple IT certification exams, including CompTIA A+ (220-1101 and 220-1102), CompTIA Network+, and even some vendor-specific exams like Cisco CCNA (for router and switch firmware). In CompTIA A+, ROM is part of the core hardware curriculum. The exam objectives specifically cover the functions of BIOS and UEFI, which are stored in ROM. You will be expected to know that ROM is non-volatile, read-only under normal conditions, and used to store firmware. Questions may ask about the difference between ROM and RAM, the purpose of POST, and how to clear CMOS (which resets the BIOS settings but does not erase the ROM itself).

In CompTIA A+ 220-1101, Domain 2 (Networking) does not directly involve ROM, but Domain 3 (Hardware) includes memory types. You should know that ROM is not used as main memory, that it is slower than RAM, and that it retains data without power. You may also encounter scenario-based questions where a technician must replace a damaged BIOS ROM chip or use a backup BIOS. In the 220-1102 exam, which covers operating systems and security, you may see questions about secure boot and how UEFI uses ROM to store trusted certificates. For Network+, ROM appears in the context of router firmware (Cisco IOS stored in flash ROM). Network+ expects you to understand that network devices have firmware stored in ROM that controls their basic operations.

For CCNA, ROM is critical because Cisco devices use a type of ROM called flash memory to store the IOS image. The boot process of a Cisco router involves several components stored in ROM: the ROM Monitor (ROMMON) for low-level diagnostics, the bootstrap program, and the full IOS image (often stored in flash, but the bootstrap is in ROM). CCNA questions may ask about the sequence of boot events: first, the router loads the bootstrap from ROM, then it locates and loads the IOS from flash (which is a type of ROM). An understanding of ROM also helps in troubleshooting when a router cannot find the IOS and enters ROMMON mode.

In all these exams, questions about ROM tend to be straightforward: definition, properties (non-volatile, read-only), contrast with RAM, and role in booting. You may also see questions on the difference between firmware updates (writing to ROM) and software updates (writing to hard drive). Knowing that ROM is not directly addressable as system RAM is another common exam trap. Therefore, mastering ROM is a foundational step that builds into more complex topics like memory hierarchy, boot processes, and firmware security.

Simple Meaning

Think of ROM as the permanent instruction manual that lives inside your computer. Unlike the temporary notes you might write on a sticky pad (which is like RAM, or Random Access Memory), the ROM manual is printed in ink. You can read it as many times as you want, but you cannot erase or rewrite it easily.

This is important because the computer needs certain fixed instructions every single time it turns on. For example, the very first thing a computer does when you press the power button is look at the ROM to find out how to check its own hardware and how to load the operating system from the hard drive. Without ROM, the computer would have no idea what to do when it starts up.

The data in ROM is non-volatile, meaning it does not disappear when the power is cut. This is a key difference from RAM, which forgets everything once the computer shuts down. Imagine a recipe book that stays in your kitchen counter forever, even if the lights go out.

That is ROM. In contrast, a whiteboard where you write temporary notes is like RAM. ROM is also much slower to read than RAM, because it is designed for permanence, not speed. In modern computers, ROM is often used to store the BIOS or UEFI firmware.

This firmware is the low-level software that initializes hardware components and loads the boot loader. If you ever update your computer’s BIOS, you are actually writing new data to a special type of ROM called flash memory. Although the name suggests it is read-only, many types of ROM today can be rewritten under specific conditions, but the basic idea remains: the contents are intended to stay unchanged for the life of the device.

Understanding ROM is fundamental for IT certifications because it explains how a computer boots, how hardware communicates before the operating system loads, and why certain memory cannot be freely modified.

Full Technical Definition

ROM, or Read-Only Memory, is a class of non-volatile memory used in computers and other electronic devices. Its primary characteristic is that data stored in it is retained when the power is turned off, and under normal operation, the data can only be read, not written. This makes it ideal for storing firmware, which is the low-level software that controls hardware at the most basic level. The most common types of ROM include mask ROM, which is programmed during manufacturing and cannot be altered; PROM (Programmable ROM), which can be written once by the user using a special device; EPROM (Erasable Programmable ROM), which can be erased by exposing it to ultraviolet light and then reprogrammed; and EEPROM (Electrically Erasable Programmable ROM), which can be erased and rewritten electrically. Flash memory, which is a type of EEPROM, is the most prevalent form of ROM in modern systems. It is used for BIOS/UEFI firmware in motherboards, firmware in SSDs, and firmware in peripherals like keyboards and network cards.

From a technical standpoint, ROM is accessed via a memory bus similar to RAM, but with different timing and control signals. In a typical PC architecture, the CPU begins executing code from a specific memory address immediately after power-on. This address is mapped to the ROM chip that contains the BIOS (Basic Input/Output System) or UEFI (Unified Extensible Firmware Interface). The ROM chip is connected to the CPU through the memory controller or, in modern systems, through the SPI (Serial Peripheral Interface) bus. The SPI bus is a simple synchronous serial protocol that uses four wires: clock, data input, data output, and chip select. SPI flash ROMs are common because they are cheap, small, and allow for in-circuit programming, which is how manufacturers and even end users update firmware.

The process of reading from ROM is straightforward: the CPU sends a read request with an address, and the ROM chip returns the data stored at that address. Writing to ROM, however, is more complex and usually requires a specific sequence of commands and voltages. For example, to program a flash ROM, the system must send a command sequence that unlocks the chip, then apply a higher voltage to the memory cells to change their state. This is why firmware updates are risky: if the power fails during a write, the ROM can become corrupted and the device may not boot. Standards for ROM programming, such as the JEDEC standards for memory chips, define timing and electrical characteristics. In exam contexts, remember that ROM is typically slower than RAM because it is designed for permanence and lower cost, not performance. ROM latencies are in the range of tens of nanoseconds, while RAM latencies are in the low nanoseconds. However, because ROM is only read during boot and occasionally for firmware operations, its speed is not a bottleneck. IT professionals must understand that ROM is where the computer stores its most essential code. When troubleshooting a system that fails to boot, the first suspicion often falls on corrupted BIOS/UEFI firmware stored in ROM. This is why many motherboards have a backup ROM chip or a feature called dual BIOS, which can restore the primary ROM if it becomes corrupt. ROM is a non-volatile, read-mostly memory technology that is central to system initialization and low-level hardware control.

Real-Life Example

Imagine you are building a high-end model car from a kit. Inside the box, there is a small, sealed instruction booklet that is printed on waterproof, tear-resistant paper. This booklet contains the exact steps to assemble the car, from attaching the wheels to wiring the lights. You cannot add your own notes to this booklet, but you can read it as many times as you need. This booklet is like ROM. Now suppose you have a separate notebook where you write down reminders, like “Paint the car red” or “Check the glue.” That notebook is like RAM. You can erase and rewrite it anytime, but when you leave the room, you might forget what you wrote. The permanent booklet never changes and is always there.

In the IT world, the ROM chip on your computer’s motherboard is that permanent instruction booklet. When you press the power button, the CPU immediately goes to that booklet and starts reading. It finds the instructions for performing a Power-On Self Test (POST), which is like checking that all the car parts are present and in good condition. Then it reads how to find the operating system on the hard drive, which is like finding the paint and glue in your toolbox. If the ROM booklet were missing or damaged, the CPU would be lost, just like you would be if the model car instructions were gone.

The analogy also works for firmware updates. When you update your computer’s BIOS, you are effectively erasing the old booklet and printing a new one. However, during the update, you must not lose power, because if the printing process is interrupted, you could end up with a blank or half-printed booklet. The computer would then have no instructions at all and would fail to boot. This is why IT professionals emphasize having a stable power source during firmware updates. The permanence and reliability of ROM make it ideal for storing the code that is too critical to be stored on a volatile medium.

Why This Term Matters

ROM matters because it is the first thing your computer runs every time you turn it on. Without ROM, the CPU would have no starting point, no initial instructions to execute. In a practical IT context, ROM is where the BIOS or UEFI firmware resides. This firmware is responsible for hardware initialization, boot device selection, and providing runtime services to the operating system. If the ROM becomes corrupted, the system may not boot at all, leading to a bricked machine. IT support professionals frequently encounter issues where a failed BIOS update or a virus that targets the firmware (like a rootkit) compromises the ROM.

Another reason ROM matters is security. Because ROM is non-volatile and hard to modify, it can be used to store cryptographic keys or trusted platform module (TPM) data. The Unified Extensible Firmware Interface (UEFI) uses ROM to store secure boot policies, which prevent unauthorized operating systems or malware from loading during startup. In enterprise environments, the integrity of ROM is critical for maintaining a secure boot chain.

ROM also plays a role in performance. While ROM is slower than RAM, its content is often shadowed (copied) into RAM during boot to speed up access. The shadowing process copies the BIOS code from the slower ROM to the faster RAM, and then the CPU executes from RAM. This is a common exam point. ROM is the foundation of the boot process, a key component of firmware management, and a security cornerstone. For IT certification learners, understanding ROM helps in troubleshooting boot failures, performing firmware updates safely, and grasping how hardware and software interact at the lowest level.

How It Appears in Exam Questions

ROM questions in certification exams are often direct and definition-based, but they can also be scenario-driven. One common pattern is the “Memory Type” question. For example, a question might display a list of memory types and ask: “Which type of memory is non-volatile and used to store the BIOS?” The correct answer is ROM, and distractors might include RAM, cache, or virtual memory. Another pattern is the “Boot process” question. A typical question: “After pressing the power button, the CPU begins executing code from which memory location?” The answer is the ROM chip (specifically the BIOS ROM).

Scenario-based questions can involve troubleshooting a failed boot. For instance: “A technician replaces a motherboard and now the computer fails to boot. The technician checks the CPU voltage and RAM seating, but the problem persists. Which component is most likely at fault?” The answer could be the ROM chip itself if it is damaged or the firmware needs to be updated to support the new hardware. Another scenario: “During a BIOS update, the power fails. The computer no longer boots. What has most likely happened?” The answer: “The ROM has become corrupted because the write process was interrupted.”

Configuration questions might ask about enabling secure boot, which relies on ROM-based UEFI certificates. For example: “A security administrator wants to ensure that only signed operating systems can boot. Which firmware feature should he enable in ROM?” Answer: Secure Boot. Troubleshooting questions often involve CMOS vs. ROM. A common trap is conflating clearing CMOS (which resets settings) with erasing ROM (which destroys firmware). A question might say: “A user resets CMOS by removing the battery, but the computer still fails to boot. What should the technician do next?” The correct answer is to consider a corrupted ROM and check for a backup BIOS chip or reflash the ROM.

In Network+ and CCNA, ROM appears in the context of device firmware. For example: “A Cisco switch is not loading the IOS. The switch enters ROMMON mode. Where is the ROMMON stored?” Answer: In ROM. Or: “What command saves the running configuration to the startup configuration in ROM?” (Actually, the startup config is stored in NVRAM, which is a type of ROM, so questions may distinguish between RAM (running config) and NVRAM (startup config). ROM questions are mostly memory-type classification, boot process steps, and firmware update/troubleshooting scenarios.

Practise ROM Questions

Test your understanding with exam-style practice questions.

Practise

Example Scenario

Scenario: You work on a help desk at a small company. A coworker named Maria calls you because her desktop computer suddenly stopped turning on. When she presses the power button, the fans spin, the lights come on, but the screen stays black. There is no beep sound, and no logo appears. You suspect the problem might be related to the ROM, because the system is not even getting to the point of looking for an operating system.

You ask Maria if she had recently tried to update the BIOS. She says yes, about a week ago. The update seemed to finish, but ever since, the computer has been acting strange. This makes you suspect that the ROM chip containing the BIOS firmware might have become corrupted during the update. You advise her to check her motherboard manual. Some motherboards have a backup ROM (often called dual BIOS) that can be switched manually or automatically. Maria locates the backup BIOS jumper on the motherboard. Following the manual, she moves the jumper to the backup position and tries to boot again. This time the computer starts normally. She then uses the manufacturer’s utility to reflash the primary ROM with the correct firmware.

In this scenario, the importance of ROM is clear. The primary ROM stored the system’s firmware. When it became corrupted, the CPU had no instructions to run at boot. The backup ROM provided a safe copy that allowed the system to recover. Without understanding that ROM is the boot instruction reservoir, a technician might have replaced the motherboard unnecessarily. This shows how knowing about ROM can save time and money in real IT troubleshooting.

Common Mistakes

Thinking that ROM is the same as RAM because both are computer memory.

RAM is volatile and loses data when power is off; ROM is non-volatile and retains data. They serve entirely different purposes: RAM for temporary data, ROM for permanent firmware.

Remember: ROM is like a permanent instruction book; RAM is like a temporary whiteboard.

Believing that ROM can never be written to at all.

While the term 'read-only' suggests no writing, many types of ROM (PROM, EPROM, EEPROM, flash) can be written under specific conditions. The phrase 'read-only' refers to normal operation.

Understand that 'read-only' means the user cannot casually write to it during normal use. Updates are possible but require special procedures.

Confusing CMOS with ROM.

CMOS is a small RAM chip that stores BIOS settings (like boot order and date/time). It is volatile and needs a battery. ROM stores the BIOS program itself. Clearing CMOS erases settings, not firmware.

CMOS = settings memory (RAM, battery-backed). ROM = firmware memory (non-volatile). They are separate components.

Assuming that all ROM is located on the motherboard only.

ROM is used in many devices: keyboards, mice, printers, SSDs, network cards, video cards, and microcontrollers. Each has its own firmware ROM.

Think of ROM as the generic place for firmware in any electronic device, not just the motherboard.

Thinking that ROM and flash memory are completely different technologies.

Flash memory is actually a type of EEPROM, which is a modern form of ROM. The basic principles of non-volatility and read-mostly operation are the same.

Flash = ROM. It is just a more advanced, electrically reprogrammable form of ROM.

Exam Trap — Don't Get Fooled

{"trap":"The exam presents a question: 'Which memory type is used to store the operating system?' and lists ROM as an option.","why_learners_choose_it":"Learners know that ROM stores essential code and that the OS boot loader is loaded from ROM.

They might incorrectly generalize that the entire OS is stored in ROM.","how_to_avoid_it":"Remember that the OS is stored on a hard drive, SSD, or other secondary storage (which is also non-volatile, but not ROM). The boot loader is stored in the first sector of the boot drive, not in ROM.

ROM stores the BIOS/UEFI firmware, not the OS itself."

Step-by-Step Breakdown

1

Power On

When the power button is pressed, the power supply sends a signal to the motherboard. The CPU is reset and begins execution at a fixed address in the memory map, which is mapped to the ROM chip containing the BIOS/UEFI firmware.

2

CPU Reads from ROM

The CPU sends a read request to the ROM chip at the reset vector address (typically FFFF0h in older systems or a similar address in UEFI). The ROM chip returns the first machine code instructions, which are part of the BIOS startup code.

3

POST (Power-On Self Test) Begins

The BIOS code instructs the CPU to test key hardware components such as the CPU itself, RAM, and the graphics card. If a critical component fails, the system may beep or display an error. POST relies entirely on the code stored in ROM.

4

Initialization of Hardware

After POST, the BIOS uses the code from ROM to initialize other hardware, including storage controllers, USB controllers, and network interfaces. It also detects connected devices and assigns resources.

5

Boot Device Search and OS Load

The BIOS reads the boot order from CMOS (settings memory) and then looks for a bootable device (like a hard drive or DVD). It loads the master boot record (MBR) or GPT header from that device into RAM, and then hands control over to the OS boot loader.

Practical Mini-Lesson

In real-world IT, ROM is most commonly encountered during firmware updates and troubleshooting. The most practical skill is knowing how to safely update the BIOS/UEFI firmware stored in ROM. This process involves downloading the correct firmware file from the motherboard manufacturer's website, placing it on a FAT32-formatted USB drive, and using the motherboard's built-in utility (like EZ Flash or M-Flash) to write the new firmware to the ROM chip. It is absolutely critical that the system has a stable power supply during the update. An uninterruptible power supply (UPS) is highly recommended. If the power fails, the ROM can become partially written, resulting in a bricked system.

Another practical aspect is recovering from a corrupted ROM. Many modern motherboards have a 'dual BIOS' feature with two ROM chips: a primary and a backup. If the primary fails, the backup can be used to boot and recover the primary. Alternatively, some boards have a dedicated 'BIOS recovery' button or USB port. For IT professionals, understanding how to trigger BIOS recovery is essential. In enterprise environments, server motherboards often have a 'ME' (Management Engine) flash region in ROM that can be corrupted and cause issues like no boot or erratic behavior.

Professionals also need to know that not all ROM is flashable. Older systems used EPROMs that required UV light erasing. In modern contexts, almost all ROM is flash memory. When dealing with embedded devices (routers, switches, IoT devices), the firmware is similarly stored in flash ROM. The upgrade process involves uploading a new firmware file through the device's management interface. Corruption during that process can also brick the device, so careful file verification and stable connections are a must.

What can go wrong? Besides power loss during a flash, using the wrong firmware file is a common mistake. For example, installing a beta version meant for a different motherboard revision can cause boot failures. Also, some firmware updates clear the UEFI settings (CMOS), requiring reconfiguration. Security-wise, malware like 'LoJax' has targeted ROM to implant persistent rootkits that survive OS reinstallation. This has led to the introduction of secure boot and signed firmware updates, which verify that the ROM image is from a trusted source. Practical ROM management is about careful planning, stable power, correct firmware, and awareness of recovery procedures.

Memory Tip

Remember: ROM is the 'Read-Only Manual' that your CPU reads first when powering up. 'ROM = First Instructions, Always There.'

Covered in These Exams

Current Exam Context

Current exam versions that test this topic — use these objectives when studying.

Related Glossary Terms

Frequently Asked Questions

Can ROM be upgraded or updated?

Yes, modern ROM chips (like flash EEPROM) can be updated through a process called 'flashing' the firmware. The update writes new data to the ROM chip. Examples include updating the BIOS or UEFI on a motherboard.

Is ROM faster than RAM?

No, ROM is generally slower than RAM. RAM is optimized for speed to allow the CPU to quickly read and write temporary data. ROM is optimized for stability and non-volatility, not speed. That’s why firmware code is often copied to RAM (shadowed) during boot.

What happens if the ROM chip is damaged?

If the ROM chip is damaged, the computer may not boot at all, or it may behave erratically. The system relies on ROM for its initial instructions. A damaged ROM usually requires replacing the chip or the entire motherboard, unless a backup ROM is available.

How is ROM different from a hard drive?

Both are non-volatile, but ROM is typically much smaller (measured in megabytes) and used for firmware, while a hard drive is measured in gigabytes or terabytes and used for user data and the operating system. The CPU can directly execute code from ROM, while code from a hard drive must first be loaded into RAM.

Does a smartphone have ROM?

Yes, smartphones have ROM chips that store the bootloader, recovery image, and radio firmware. The operating system (like Android or iOS) is stored on flash memory, which is a type of storage, but the boot firmware is stored in dedicated ROM.

Can viruses infect ROM?

Yes, sophisticated malware like rootkits can infect ROM, specifically the firmware (BIOS/UEFI). Such infections are hard to detect and remove because they persist even after reformatting the hard drive. Modern firmware security features like Secure Boot and signed updates help prevent this.

Summary

ROM (Read-Only Memory) is a foundational concept in IT that describes non-volatile memory used to store essential firmware, such as the BIOS or UEFI, that a computer needs to start. Unlike RAM, ROM retains its data when power is off, making it ideal for permanent instructions. The term 'read-only' can be slightly misleading because modern ROM (flash memory) can be rewritten, but under normal operation, the user only reads from it. Understanding ROM is crucial for IT certification learners because it appears in the context of system boot processes, memory classification, firmware management, and security.

For the exams, focus on the core properties: non-volatile, slower than RAM, holds BIOS/UEFI, and used only for reading during normal operation. Know the difference between ROM and CMOS: ROM holds firmware, CMOS holds settings. Be able to explain the boot sequence: power on, CPU reads from ROM, POST, hardware initialization, then boot device search. Understand that firmware updates write to ROM and that power loss during an update can corrupt the ROM, causing a boot failure.

In real-world IT, ROM management involves safe firmware updates, recovery from corruption (dual BIOS, backup recovery), and awareness of firmware security. From CompTIA A+ to CCNA, ROM is a small but essential piece of the hardware puzzle. Master it, and you will have a clear understanding of how your devices wake up every time you press the power button.