Sub topic 6
M.2 Slots and NVMe over PCIe
This chapter assumes you already know what SATA is, how a 2.5-inch SSD differs from a 3.5-inch HDD, and what PCIe lanes are at a basic level. It covers the part of the storage story that most often trips up exam candidates: an M.2 slot is a physical connector, and what runs through it can be either SATA or NVMe.
M.2 is a connector, NVMe is a protocol
Three terms are easy to blur together. Keep them separate.
- M.2 is a form factor and connector standard. It defines the card size and the edge connector. It says nothing about speed on its own.
- SATA is a bus and protocol designed for hard drives. An M.2 SSD can use it.
- NVMe (Non-Volatile Memory Express) is a protocol built for flash storage. It runs over PCIe lanes and an M.2 SSD can use it.
So "M.2 SSD" does not tell you the speed. A SATA M.2 drive tops out near 550 MB/s, the same as a 2.5-inch SATA SSD. An NVMe M.2 drive can be several times faster, depending on the PCIe generation.
| Term | What it describes | Example |
|---|---|---|
| M.2 | Physical card and connector | A 22 mm wide card in a slot on the motherboard |
| SATA | Protocol and bus (6 Gbps) | M.2 SATA SSD, 2.5-inch SSD |
| NVMe | Protocol over PCIe | M.2 NVMe SSD, PCIe add-in card SSD |
| PCIe | The lane-based bus NVMe rides on | x4 link to the CPU or chipset |
Reading M.2 sizes and keys
M.2 cards are named by width and length in millimeters. The name 2280 means 22 mm wide and 80 mm long. Common lengths are 2242, 2260, 2280, and 22110. The 2280 size is the most common in desktops and laptops. The motherboard has a mounting standoff, often movable, for each length it supports.
The connector has notches called keys. The key position decides which interface a slot or card can carry.
| Key | Typical use | Notes |
|---|---|---|
| B key | SATA or PCIe x2 | Common on older M.2 SATA drives. Has two edge contacts on one side of the notch. |
| M key | PCIe x4 (NVMe) or SATA | Used by most NVMe SSDs. |
| B+M key | SATA or PCIe x2 | Fits both B and M slots. Many M.2 SATA drives use this. |
A card keyed B+M has two notches. It fits a B-key or M-key slot, but the slot still has to support the protocol the card uses.
The older mSATA form factor is different. It looks like a mini PCIe card but uses the SATA protocol. It is physically smaller than M.2 SATA and is not compatible with M.2 slots.
What the slot actually supports
Two M.2 slots on the same board can behave differently. Check the motherboard manual for each slot. A slot may support:
- SATA only
- PCIe (NVMe) only
- Both, with the board detecting the drive type automatically
Putting an NVMe drive in a SATA-only slot will not work. The drive is not detected. The reverse is also true: a SATA M.2 drive in an NVMe-only slot is not detected.
Some boards share bandwidth between an M.2 slot and SATA ports. Filling the M.2 slot can disable one or more SATA ports. This is a common reason a previously working drive disappears after an upgrade.
NVMe and PCIe speed
NVMe drives usually use four PCIe lanes (x4). Each PCIe generation roughly doubles per-lane bandwidth, so the generation of the slot and the drive sets the ceiling.
| PCIe generation | Approx. usable bandwidth per lane | Approx. x4 ceiling |
|---|---|---|
| 3.0 | about 1 GB/s | about 4 GB/s |
| 4.0 | about 2 GB/s | about 8 GB/s |
| 5.0 | about 4 GB/s | about 16 GB/s |
The link runs at the speed of the slower side. A PCIe 4.0 drive in a PCIe 3.0 slot works but runs at 3.0 speeds. A drive wired for x2 lanes is limited to half the x4 figure.
NVMe is also faster in a second way. The older AHCI command set used for SATA has one command queue holding 32 commands. NVMe supports up to 65,535 queues, each up to 65,536 commands deep. That matters most when many requests arrive at once, such as in servers and heavy multitasking. It also lowers latency for single requests.
Heat and throttling
Fast NVMe drives produce heat. When the controller gets too hot, it slows itself down to protect the drive. This is thermal throttling. Symptoms include fast bursts at the start of a large copy that then drop sharply.
Common fixes:
- Install the heatsink that comes with the motherboard over the M.2 slot.
- Improve case airflow.
- Use a drive with its own heatsink, if clearance allows.
Laptops often cannot fit a tall heatsink, so check clearance before buying.
Installing an M.2 drive
- Power off the system and unplug it. Use ESD precautions, such as a wrist strap.
- Find the M.2 slot and remove any heatsink cover.
- Move the standoff to the screw hole that matches the card length, if it is adjustable.
- Insert the card at roughly a 30 degree angle until the contacts are seated.
- Press the card flat and secure it with the screw. Do not overtighten.
- Replace the heatsink, then power on.
- If the drive is new, initialize and format it in the operating system's disk management tool.
If the drive does not appear in the OS, check the BIOS/UEFI first. A drive visible in firmware but not in the OS usually needs initializing. A drive missing in firmware points to a seating problem, wrong slot type, or a disabled slot.
Checking the drive type from the OS
This PowerShell command shows the media type, bus type, and size. An NVMe drive reports NVMe as its bus type.
Get-PhysicalDisk | Select-Object FriendlyName, MediaType, BusType, SizeOn Linux, ROTA is 1 for rotational drives and 0 for SSDs. NVMe devices appear with names like nvme0n1.
lsblk -d -o NAME,ROTA,SIZE,TYPEBoot and compatibility notes
- Booting from NVMe needs firmware support. Most modern UEFI systems have it. Very old BIOS-only boards may need a workaround or may not boot from NVMe at all.
- NVMe is the interface for the drive. It is not a RAID level. Some boards can build RAID sets from M.2 drives, but that is a separate feature.
- An NVMe drive can also be installed in a PCIe slot using an adapter card. This works because NVMe is a PCIe protocol.
Exam-style troubleshooting
| Symptom | Likely cause |
|---|---|
| New M.2 drive not detected at all | Slot supports a different protocol, drive not seated, or slot disabled |
| SATA port stops working after adding an M.2 drive | Bandwidth shared between the M.2 slot and that SATA port |
| NVMe drive slower than advertised | Slot runs an older PCIe generation or fewer lanes |
| Fast copy that slows down after a few seconds | Thermal throttling or full write cache |
| Drive seen in UEFI but not in the OS | Not initialized or formatted |
Exercise
A technician installs a 2280 M.2 NVMe SSD (PCIe 4.0 x4) into a motherboard whose M.2 slot is PCIe 3.0 x4. The drive is detected. What speed range should the technician expect, and what would the technician check if the drive were not detected at all?
Show answer
Expect roughly 3 to 4 GB/s, because the link runs at the slower PCIe 3.0 speed. If the drive were not detected, check that the slot supports NVMe (not SATA only), that the card is fully seated and screwed down, that the slot is enabled in UEFI, and whether another device such as a SATA port is sharing bandwidth with the slot.
Exercise
A customer's laptop has an mSATA slot. They bought an M.2 SATA SSD and ask if it will fit. What do you tell them?
Show answer
It will not work. mSATA and M.2 are different form factors with different connectors, even though both can carry the SATA protocol. The customer needs an mSATA drive, or a laptop with an M.2 slot.