What Is CSM in BIOS? Definition and How It Works
In this article
CSM (Compatibility Support Module) is a component of UEFI firmware that emulates the old BIOS environment so that legacy operating systems and boot loaders can still start on modern hardware.
Background: Legacy BIOS vs. UEFI
Before 2010 most PCs used the traditional BIOS (Basic Input/Output System). BIOS is a 16‑bit firmware interface that performs power‑on self‑test (POST), discovers hardware, and hands control to a bootloader located in the first sector of a storage device. BIOS has several limitations: it can only address the first 1 MiB of memory, it uses a fixed MBR (Master Boot Record) partition scheme, and it lacks modern security features such as Secure Boot.
UEFI (Unified Extensible Firmware Interface) was introduced to replace BIOS. UEFI runs in 32‑ or 64‑bit mode, supports the GPT (GUID Partition Table) layout, can load drivers from the firmware volume, and provides a richer pre‑OS environment. However, many older operating systems (Windows 7 in legacy mode, older Linux kernels, and many OEM recovery tools) still expect the classic BIOS services. To keep those systems functional, firmware vendors added a Compatibility Support Module.
What CSM Stands For and Its Purpose
CSM is an acronym for Compatibility Support Module. It is not a slang term; it is a standardized label defined by the UEFI specification. The module essentially creates a BIOS‑compatible layer on top of the UEFI firmware. When CSM is active, the firmware presents the same interrupt calls, data structures, and boot sequence that a traditional BIOS would provide.
The primary reasons for using CSM are:
- Booting operating systems that do not understand UEFI, such as older versions of Windows or Linux.
- Running legacy boot managers (e.g., GRUB legacy, Windows Boot Manager in BIOS mode).
- Using older expansion cards or peripherals that rely on BIOS‑only initialization.
How CSM Works Inside UEFI Firmware
When the system powers on, the UEFI firmware executes its normal initialization code. If the CSM option is enabled, the firmware also loads a small BIOS emulation library into memory. This library intercepts calls that would normally go to the BIOS and translates them into UEFI calls, or vice‑versa, depending on the direction of the request.
The process can be broken down into three stages:
- Detection: The firmware checks the
BootFromFileorBootFromDeviceoption in the boot order. If a legacy boot entry (identified by aBoot####variable with theLegacyflag) is present, CSM is invoked. - Emulation: CSM creates a virtual 16‑bit BIOS environment, populates the interrupt vector table, and provides services such as INT 13h (disk I/O) and INT 10h (video). These services are mapped to UEFI protocols like
EFI_BLOCK_IO_PROTOCOLandEFI_GRAPHICS_OUTPUT_PROTOCOL. - Hand‑off: After the legacy bootloader finishes its tasks, control is transferred back to the UEFI firmware, which then continues the normal boot process or hands control to the operating system.
Because the CSM runs in a separate execution mode, it does not interfere with native UEFI features such as Secure Boot, fast boot, or firmware updates.
Enabling or Disabling CSM in the BIOS Setup
Most modern motherboards expose the CSM option in the UEFI setup utility. The exact wording can differ ("Compatibility Support Module", "Legacy Support", or simply "CSM"). Below are the typical steps for a desktop PC:
- Power on the computer and press the key shown on the splash screen (often Delete or F2) to enter the firmware setup.
- Navigate to the Boot or Advanced tab. The location varies by vendor, but it is usually near the top of the menu hierarchy.
- Find the entry labeled CSM, Compatibility Support Module, or Legacy Support. If the option is hidden, look for a sub‑menu called Boot Mode or UEFI/Legacy Boot.
- Select the entry and choose Enabled to turn on BIOS compatibility, or Disabled to run in pure UEFI mode.
- Some firmware versions also let you enable CSM for specific device types (e.g., Hard Disk Drive, Optical Drive, PCIe/PCI). Adjust these only if you have a clear reason.
- Save the changes (usually F10) and exit. The system will reboot with the new setting.
Note: Changing the boot mode may require you to re‑create the boot entry list. After disabling CSM, legacy‑only OS installations will no longer appear in the boot menu.
Common Problems When CSM Is Enabled
While CSM solves compatibility issues, it can also introduce new headaches. The most frequent complaints are:
- Boot failures: A legacy OS may refuse to start if the firmware presents a GPT disk while the OS expects MBR. Converting the disk or reinstalling the OS in the appropriate mode resolves the issue.
- Secure Boot conflicts: Enabling CSM automatically disables Secure Boot because the BIOS emulation cannot verify signatures. If you need Secure Boot, you must keep CSM disabled.
- Performance loss: Legacy boot paths bypass many UEFI optimizations, resulting in slightly longer POST times and slower driver loading.
- Hardware detection problems: Some newer NVMe SSDs are only initialized by native UEFI drivers. With CSM active, the firmware may fall back to a generic SATA controller, causing the drive to be invisible to the bootloader.
Typical troubleshooting steps start with disabling CSM, verifying the disk partition style, and ensuring the boot order points to a UEFI boot entry.
Comparisons: CSM vs. Pure UEFI (Secure Boot)
Below is a quick side‑by‑side comparison to help you decide which mode fits your needs.
| Feature | CSM (Legacy BIOS) | Pure UEFI |
|---|---|---|
| Boot mode | 16‑bit BIOS emulation | 32/64‑bit native UEFI |
| Partition scheme | MBR only | GPT (supports >2 TB disks) |
| Secure Boot | Not available | Supported, requires signed bootloaders |
| Fast boot | Limited, longer POST | Optimized, can skip hardware checks |
| OS compatibility | Older Windows (XP, Vista), older Linux kernels | Windows 8/10/11, modern Linux distributions |
When you have no legacy OS requirements, disabling CSM gives you access to the full feature set of UEFI, including Secure Boot and faster startup.
Safety and Precautions
Adjusting the CSM setting is safe for the hardware; it merely changes how the firmware presents itself to the operating system. However, there are a few cautions:
- Always back up important data before switching partition styles (MBR ↔ GPT). The conversion process can erase data if performed incorrectly.
- If you are dual‑booting Windows and Linux, make sure both OSes are installed in the same mode. Mixing UEFI and legacy installations often leads to boot manager conflicts.
- After disabling CSM, verify that the Boot Option Priorities list contains a UEFI entry (e.g.,
UEFI: Windows Boot Manager). If the list is empty, you may need to add a new boot entry using theefibootmgrtool from a live Linux environment.
Alternatives to Using CSM
If you need to run legacy software without keeping CSM permanently enabled, consider these alternatives:
- Virtualization: Run the older OS inside a virtual machine (VMware, VirtualBox, Hyper‑V). The VM provides a BIOS interface while the host stays in pure UEFI mode.
- Legacy boot media: Some manufacturers ship a separate Legacy BIOS bootable USB that contains its own minimal firmware. Booting from that media bypasses the system’s CSM setting.
- Hybrid installations: Install the newer OS in UEFI mode on a separate drive, and keep the older OS on a second drive that boots in legacy mode. The firmware can switch between modes based on the selected boot device.
Frequently Asked Questions
Is CSM required to install Windows 10?
No. Windows 10 supports native UEFI installation and works best with Secure Boot enabled. CSM is only needed if you are installing an older 32‑bit version that lacks UEFI support.
Can I enable CSM on a laptop that only shows UEFI options?
Most modern laptops still expose a CSM toggle, often labeled “Legacy Support” or “Boot Mode”. If the option is missing, the firmware may have removed legacy support entirely, in which case you must use a UEFI‑compatible OS.
What happens to the boot order when I turn CSM on?
The firmware adds a set of legacy boot entries (e.g., Legacy HDD, Legacy CD/DVD) to the boot priority list. These entries appear alongside any existing UEFI entries, and you can reorder them just like any other boot device.
Does disabling CSM affect data on my hard drive?
Disabling CSM does not delete data, but it may prevent the system from recognizing partitions that use the MBR scheme. If the OS on that drive is installed in legacy mode, it simply won’t boot until you re‑enable CSM or reinstall the OS in UEFI mode.
Why does my computer reboot twice after I enable CSM?
When CSM is enabled, the firmware often performs an initial UEFI POST, then switches to the BIOS emulation layer for a second POST before handing control to the legacy bootloader. This double‑POST behavior is normal and not a sign of failure.
Can Secure Boot be used together with CSM?
No. Secure Boot relies on UEFI signatures, which are incompatible with the BIOS emulation that CSM provides. Enabling CSM automatically disables Secure Boot.