Stuffing an SSD Inside the Raspberry Pi 400

Posted on


I have successfully jammed an mSATA SSD into the main shell of my Raspberry Pi 400. It wasn’t as straightforward as I thought it would be - in fact, most real hardware tinkerers will probably vomit in their mouths once they see how I achieved this…

But I’m happy with my build. Those with better skills and knowledge can most likely improve upon this concept (and please do if you can - I’d love to see it!)

Enough chit-chat - on to the build!

The Finished “Masterpiece”

Below you can see the final look of my modded Raspberry Pi 400, which I have personally named the Raspberry Pi 400X:

Pi 400 with internal SSD
The finished Raspberry Pi 400X (direct link to image)

Do you see that ugly black USB-C to USB-A cable jutting out from the top? That little guy connects directly to the mSATA SSD inside the plastic keyboard structure and allows us to boot via USB. It also gives us the flexibility to easily unplug the internal SSD for times when we desire to boot from micro SD or a different USB device altogether.

So, how did I make this?

The Shopping List

Before we deep dive into the terrible hardware modifications I’ve made to my Pi, I’ll list out all the items/tools I used during the making of this monstrosity:

Modding the Raspberry Pi 400

The final product requires us to attach the half size mSATA SSD to the (gutted) enclosure and then insert that directly inside the Pi (next to the lock port / ethernet). Our first step will be to disassemble the Pi 400, safely remove the keyboard module and remove the metal heatsink.

With your trusty metal cutting scissors (or whatever tool you prefer) you will need to cut out room for our enclosure internals to fit within:

The cutout heatsink
I drew the outline of the enclosure on the metal first before cutting. (direct link to image)

Next you will need to carefully remove the Pi board itself from the red part of the case. Once placed safely aside, it’s time to bust out our sanding dremel and remove the jutting plastic blocking our soon-to-be-added SSD. Remember to wear a mask during this phase, since breathing in plastic dust and fumes is not fun!

Important to note: this will remove one of the screw slots needed to secure the heatsink into the board. Not a big deal if you ask me…

Plastic dremled back
Here you can see my terrible sanding job on the far left plastic snap-lock (direct link to image)

While you have the Pi board removed you should also cut out a slot for the USB-C to USB-A cable to connect our mSATA to one of our USB 3 ports on the Pi. For this I’ve opted to butcher the lock port (will I ever really use that anyway?)

Back of the Pi opening
Don't judge...I'm sure most people could do a cleaner job! (direct link to image)

Now all that’s left is to insert our gutted mSATA enclosure (with the half size SSD attached of course) , tape it down with some hideous electrical tape and close this bad boy back up!

The internal SSD
Take note of the tiny triangle piece of foam on the Type-C connector. This helps avoid direct contact with the back of the keyboard module! (direct link to image)

That’s it! You now have the portable power of the Raspberry Pi 400, but now with the speed and performance of an SSD!

The Performance Gains

Storage Type Seq. Write Random W Random R
Micro SD Card 17818 KB/sec 812 IOPS 2335 IOPS
mSATA SSD 206738 KB/sec 14615 IOPS 17925 IOPS

I think it’s pretty clear that the SSD blows the default micro SD card out of the water…

Closing Thoughts

Now clearly you could just plug-in an external SSD and walk away with the same performance boosts - but where is the fun in that?

If anyone decides to improve on this or make a cleaner approach, please do share it with me. I’d love to see it!