Raspberry Pi Compute Module 4 Gains Native SATA Support

A Raspberry Pi Computer Module 4 and a SATA hard drive
(Image credit: Raspberrypi.org/Bipra)

Raspberry Pi OS now has SATA support built into the kernel. Before you rush to tear the hard drive from your PC and hook it up to your Pi, there’s a catch: you’ll need a Compute Module 4 instead of the standard 4B or 400 models. And for now you can’t boot from it. YouTuber and Jeff Geerling, who is responsible in part for the addition, has an insightful blog post on the matter, and a video essay embedded below. 

What this means in practice is that Raspberry Pi OS, built upon Debian Linux, now supports almost all PCI Express SATA adapters - a bus not found outside of the Compute Module version of the Pi 4 even if it is only a Gen 2 x1 lane (and you’ll need the optional IO board to get the physical socket). Other models of Raspberry Pi can use SATA drives through SATA to USB adapters, but will sacrifice up to 20% performance along the way. Advanced users can manually add SATA and AHCI to the kernel before recompiling. But you will need to recompile every time there’s an update.

Having SATA baked into the kernel will make it easier to use a Compute Module 4 in homebrewed RAID NAS rigs, or just attach large amounts of storage to run at full speed, without having to hack a solution together and maintain a custom kernel. On the other hand, aren’t those just the things that we as Raspberry Pi enthusiasts like doing?

Ian Evenden
Freelance News Writer

Ian Evenden is a UK-based news writer for Tom’s Hardware US. He’ll write about anything, but stories about Raspberry Pi and DIY robots seem to find their way to him.