Sub topic 11
Storage connections on the board: SATA, M.2, and NVMe
This chapter assumes you know what a motherboard, chipset, and PCIe lane are from earlier chapters. It covers how drives physically and logically attach to the board, and the errors that cause the most confusion on the A+ Core 1 exam and on the job.
Interface, protocol, and form factor are different things
Three terms get mixed up constantly, so separate them first.
- The connector or form factor is the physical shape: a SATA data port, or an M.2 slot.
- The bus or interface is the electrical path to the CPU or chipset: SATA or PCIe.
- The protocol is the command language the drive speaks: AHCI or NVMe.
A SATA drive uses the SATA bus and the AHCI protocol. An NVMe drive uses the PCIe bus and the NVMe protocol. An M.2 slot is only a physical slot. It can carry either SATA or PCIe signals, depending on the drive and the board.
SATA
SATA (Serial ATA) is the long-standing interface for 2.5-inch and 3.5-inch drives and optical drives. Each port connects one drive with a thin 7-pin data cable. Power comes separately from a 15-pin SATA power connector on the power supply.
| Revision | Raw signaling rate | Approximate usable throughput |
|---|---|---|
| SATA 1.0 | 1.5 Gbps | 150 MB/s |
| SATA 2.0 | 3 Gbps | 300 MB/s |
| SATA 3.0 | 6 Gbps | 600 MB/s |
The usable figure is lower than the raw rate because SATA uses 8b/10b encoding. Every 8 bits of data are sent as 10 bits on the wire. For SATA 3, 6 Gbps x 0.8 = 4.8 Gbps, which is 600 MB/s. Real SSDs top out around 550 MB/s.
Key SATA facts:
- Revisions are backward and forward compatible. A SATA 3 SSD works on a SATA 2 port at the lower speed.
- Cables are not keyed by revision. Any SATA data cable works with any revision.
- The connector is L-shaped, so it only fits one way.
- SATA drives are hot-swappable only if the board and controller support it and hot plug is enabled. Do not assume it.
- eSATA is an external version of the port with a shielded connector. It is largely obsolete in favor of USB.
SATA ports usually come from the chipset. Boards with many ports sometimes share bandwidth with other devices, which leads to the sharing problem described below.
M.2
M.2 is a small form factor for expansion cards, replacing the older mSATA. It is used for SSDs, Wi-Fi cards, and other modules. Because M.2 is only a shape, you must check what a given slot supports.
Size codes
M.2 modules are named by width and length in millimeters. A module labeled 2280 is 22 mm wide and 80 mm long. Common lengths are 2230, 2242, 2260, 2280, and 22110. Desktop boards mostly accept 2280. Laptops often use 2230 or 2242. A board has standoff screw positions for each length, and you move the standoff to match the module.
Keys
The gold contacts have notches, called keys, that prevent plugging a card into the wrong slot type.
| Key | Typical use |
|---|---|
| B key | SATA or PCIe x2 SSDs |
| M key | PCIe x4 NVMe SSDs, and SATA SSDs |
| B+M key | SATA SSDs, and PCIe x2 SSDs |
| E key | Wi-Fi and Bluetooth cards |
A B+M drive has two notches and fits either slot. An M-key drive has one notch and fits only an M-key slot. Most modern desktop SSD slots are M key.
Matching the drive to the slot
The same physical drive size can use different buses, so a drive that fits is not guaranteed to work.
- A SATA M.2 SSD in an M.2 slot that only supports PCIe will not be detected.
- A PCIe NVMe SSD in a slot that only supports SATA will not be detected.
- Many desktop boards support both and detect which one is installed. The manual and the silkscreen labels on the board say which.
NVMe
NVMe (Non-Volatile Memory Express) is a protocol designed for flash storage over PCIe. AHCI was designed for spinning disks and has one command queue with 32 commands. NVMe supports up to 65,535 queues, each up to 65,535 commands deep. That suits the parallelism of flash.
Most NVMe drives use four PCIe lanes (x4). Speed depends on the PCIe generation.
| PCIe generation | Per-lane speed (approx.) | x4 drive (approx.) |
|---|---|---|
| 3.0 | 1 GB/s | 4 GB/s |
| 4.0 | 2 GB/s | 8 GB/s |
| 5.0 | 4 GB/s | 16 GB/s |
Real drives reach somewhat below these ceilings. An NVMe SSD can be several times faster than a SATA SSD in sequential transfers.
NVMe drives also come in other physical forms, such as U.2 (a 2.5-inch drive with a cable) and add-in cards that sit in a PCIe slot. These use the same protocol.
Where the lanes come from
PCIe lanes for an M.2 slot come from either the CPU or the chipset. A slot wired to the CPU usually has a direct, faster path. A slot wired to the chipset shares the single link between the chipset and CPU with other devices such as USB and SATA.
Lane and port sharing
Boards have a limited pool of lanes and ports, so installing a drive in one slot can disable something else. Typical examples:
- Using a specific M.2 slot may disable one or more SATA ports.
- Using a second M.2 slot may drop a PCIe x16 graphics slot from x16 to x8.
The board manual lists these conflicts. If a SATA drive disappears after you install an M.2 SSD, sharing is the first thing to check.
RAID and the controller mode
Storage controllers in the firmware usually offer these modes:
- AHCI is the standard mode for SATA drives. It enables features such as native command queuing and hot plug.
- RAID mode lets the chipset combine drives into arrays such as RAID 0 (striping) or RAID 1 (mirroring). It is often called "fake RAID" or firmware RAID because the CPU does much of the work.
- IDE or legacy mode exists for old operating systems.
Changing the mode after Windows is installed can cause a boot failure with an "inaccessible boot device" error, because the needed driver is not loaded. Set the mode before installing the OS.
Checking what is installed
On Windows, PowerShell can list physical disks and show their bus type:
Get-PhysicalDisk | Select-Object FriendlyName, BusType, MediaType, SizeBusType shows NVMe, SATA, or USB. On Linux, lsblk lists block devices, and NVMe drives appear as nvme0n1, while SATA drives appear as sda:
lsblk -o NAME,SIZE,TYPE,TRAN,MODELThe TRAN column shows the transport, such as sata or nvme.
Installation checklist
- Power off, unplug, and use ESD protection.
- Read the manual for the slot's supported bus, length, and conflicts.
- For M.2, move the standoff to the right length, insert the module at about 30 degrees, press it down, and fasten the screw.
- For SATA, connect the data cable to the board and drive, and add SATA power.
- Boot to firmware setup and confirm the drive is detected.
- If a drive is missing, reseat it, check for sharing conflicts, and check the controller mode.
- Initialize and format the drive in the operating system.
Some NVMe drives get hot and throttle under sustained load. A heat spreader or heatsink, often included with the board, prevents this. Remove the protective film from the thermal pad before fitting it.
Common errors
- Drive not detected in M.2: wrong bus type for the slot, a sharing conflict, or an unseated module.
- SATA drive vanished after adding M.2: the slot shares lanes with that SATA port.
- Slower than expected: the drive is in a chipset-fed slot, a lower PCIe generation slot, or a SATA 2 port.
- Boot failure after changing controller mode: the OS lacks the driver for the new mode.
- Drive detected in firmware but not in the OS: it has not been initialized or formatted.
Exercise
A technician installs a new M.2 NVMe SSD in a desktop. The drive is detected, but a SATA hard drive that worked yesterday no longer appears. What is the most likely cause, and where should the technician look first?
Show answer
The M.2 slot likely shares lanes or bandwidth with a SATA port, so using the slot disables that port. The technician should check the motherboard manual's section on M.2 and SATA sharing, then move the hard drive to a SATA port that is not disabled.
Exercise
A SATA 3 SSD is connected to a SATA 2 port. What is the maximum usable throughput, and does the SSD still work?
Show answer
The SSD works because SATA revisions are compatible, but throughput is limited to the SATA 2 rate of 3 Gbps, which is about 300 MB/s after 8b/10b encoding.