Raspberry Pi Cheap SSD Upgrade Guide

I’ve covered the benefits of taking your Raspberry Pi to a solid state drive (SSD) before extensively in this article but in a nutshell you get around a 280% increase in raw throughput and a 1000% increase in 4k random read/writes over a MicroSD card.

That’s fantastic but SSDs have traditionally been very expensive costing you as much as 4+ Raspberry Pis so it seemed silly to use a drive like that as Pi storage. Until now.

Raspberry Pi Cheap SSD Upgrade Guide

That’s right. Thanks to technologies such as 3D NAND flash solid state drives for consumers have now become cheaper than mid-high range MicroSD cards. With 10x the performance of MicroSD cards they are now a no-brainer upgrade for servers or IO intensive Raspberry Pi projects.

Why Choose SSD?

MicroSD cards were not designed to serve as living storage for operating systems. They are designed for devices such as cameras and smart phones that need to write and reliably store data. They’re very good at this and some cards have excellent throughput fast enough to even record 4K video.

But one thing they are not good at is 4k random writes and rewrites. These are small writes throughout a disk and consist of about 25% of all hard drive activity on a computer. Almost every action you take and even routine log file updates trigger these updates so they are very important for performance.

To show you the difference in performance I have developed a benchmark that anyone can run and uploads the results to the site. Click here to learn more about the benchmark and results.

ScoreUserBrandLinkHost ModelClassManuf.ModelSize (GB)M. DateDD WriteRandW IOPSRandR IOPSRand WriteRand ReadIO ReadIO WriteIO Rand ReadIO Rand WriteHDParm DiskProductDateHost OSArch
1965AnonymousSanDisk UltraView Product3B+ 1.3A1 Class 10 U1SanDiskSL16G1602/201834.026351846105427387968973596870834822.02SDHC2019-03-21 2:26 PMRaspbian GNU/Linux 9 (stretch)armv7l
1427AnonymousKingston DigitalView Product4B 1.1A1 Class 10 V10 U1PhisonSD16G1605/201826.913732568549310274954445507483471639.85SDHC2019-06-27 10:37 PMRaspbian GNU/Linux 10 (buster)armv7l
9189jchambersSamsung 950 Pro NVMEView Product4B 1.1SSD (M.2 NVME)SamsungLJH-256V2G-11256N/A1931242719497497087798937018306662044136957327.76SSD2019-06-28 8:43 PMRaspbian GNU/Linux 10 (buster)armv7l
9618jchambersSamsung 950 Pro NVMEView Product4B 1.1SSD (M.2 NVME)Samsung256N/A2001212123104484849241838206319842659236682299.35SSD2019-06-30 5:00 PMRaspbian GNU/Linux 10 (buster)armv7l
1624AnonymousSanDisk ExtremeView Product4B 1.1A1 Class 10 V30 U3SanDiskAFGCE6404/201738.4105036634201146531013329619708460440.97SDXC2019-07-02 1:59 PMRaspbian GNU/Linux 10 (buster)armv7l
9044jchambersCrucial MX200View Product4B 1.1SSD (2.5" SATA)Crucial250N/A2051242723167497089266919970328161683635742316.22SSD2019-07-08 6:11 PMRaspbian GNU/Linux 10 (buster)armv7l
1558AnonymousAData Premier ProView Product4B 1.1A2 Class 10 V30 U3ADataSD6405/201924.01239426649571706512606408910432433941.45SDXC2019-07-14 9:45 AMRaspbian GNU/Linux 10 (buster)armv7l
9078AnonymousKingston A400View Product4B 1.1SSD (2.5" SATA)KingstonSA400S37240G240N/A1791172122328468868931536181312822275935949300.13SSD2019-07-18 4:24 PMRaspbian GNU/Linux 10 (buster)armv7l
1342AnonymousSanDisk UltraView Product4B 1.1A1 Class 10 U1SanDiskSC64G6403/201823.510813031432712125937634298981385240.36SDXC2019-07-25 12:51 AMRaspbian GNU/Linux 10 (buster)armv7l
1880AnonymousSanDisk Extreme PlusView Product4B 1.1A1 Class 10 V30 U3SanDiskSP32G3202/201940.21458356358321425412648307211897547742.19SDHC2019-07-25 3:13 PMRaspbian GNU/Linux 10 (buster)armv7l
9540nooxTranscend M.2 NVMEView Product4B 1.1SSD (M.2 NVME)TranscendTS1TMTE110S256N/A1861191822644476729057936394313853132736071297.47SSD2019-08-01 2:14 PMRaspbian GNU/Linux 10 (buster)armv7l
1585AnonymousTranscendView Product4B 1.1A1 Class 10 V30 U3TranscendUSDU16406/201924.01216404348641617517161413710648417941.08SDXC2019-08-03 2:19 PMRaspbian GNU/Linux 10 (buster)armv7l
9529AnonymousKingston A400View Product4B 1.1SSD (2.5" SATA)KingstonSA400S37120G120N/A22015880301706352312068337516287541849430791296.64SSD2019-08-04 10:14 AMRaspbian GNU/Linux 10 (buster)armv7l
9007AnonymousCrucial BX500View Product4B 1.1SSD (2.5" SATA)CrucialCT120BX500SSD1120N/A1721195122387478058954936170312902245535832301.17SSD2019-08-04 9:24 AMRaspbian GNU/Linux 10 (buster)armv7l
10555AnonymousSanDisk Extreme PortableView Product4B 1.1SSD (Portable)SanDiskSD9SN8W512G500N/A21914953290905981311636339574344942337539780311.25SSD2019-08-17 8:42 PMRaspbian GNU/Linux 10 (buster)armv7l
1455iceboxicKingston DigitalView Product4B 1.1Class 10 U1PhisonSD32G3205/201928.214162533566410135953146527487482940.89SDHC2019-08-21 2:45 PMRaspbian GNU/Linux 10 (buster)armv7l
10551NaroarSamsung T5View Product4B 1.1SSD (Portable)SamsungPortableSSDT5500N/A24914840290905936211636331007348112063338704312.82SSD2019-08-22 6:51 AMRaspbian GNU/Linux 10 (buster)armv7l
1548AnonymousLexar High PerformanceView Product4B 1.1A1 Class 10 V10 U1Lexar5cMJR3210/201817.61370400154811600512209445610623479841.34SDHC2019-08-22 10:19 PMRaspbian GNU/Linux 10 (buster)armv7l
1363R4W4CSamsung Evo+View Product4B 1.1Class 10 U3SamsungEC2QT6406/201721.612273021490912087981136059993364739.84SDXC2019-08-23 4:18 PMRaspbian GNU/Linux 10 (buster)armv7l
1617AnonymousPhison4B 1.1A1 Class 10 V10 U1PhisonSD64G6407/201924.7175727947030111761085354358724565239.97SD2019-08-23 5:17 PMRaspbian GNU/Linux 10 (buster)armv7l
1492AnonymousSamsung EvoView Product4B 1.1Class 10 U1Samsung000006403/201619.4531394721271578913975345113930351642.93SDXC2019-08-25 8:08 AMDebian GNU/Linux 9 (stretch)aarch64
9481aumaypeSamsung 860 EvoView Product4B 1.1SSD (2.5" SATA)SamsungSSD860EVOmSATA1TB1000N/A2311027624975411079990237989299601720237217302.65SSD2019-08-26 3:35 AMRaspbian GNU/Linux 10 (buster)armv7l
9167AnonymousCrucial BX500View Product4B 1.1SSD (2.5" SATA)CrucialCT240BX500SSD1240N/A19211469218054587887223359483109224891351606.55SSD2019-08-29 11:20 AMRaspbian GNU/Linux 10 (buster)armv7l
1461JuicenginPhison4B 1.1A1 Class 10 V10 U1PhisonSD32G3207/201928.512592521503710084989447297536495040.72SD2019-08-30 11:47 PMRaspbian GNU/Linux 10 (buster)armv7l
1658AnonymousSanDisk Extreme PlusView Product4B 1.1A1 Class 10 V30 U3SanDiskSP64G6409/201738.813783584551214336984526949701466440.66SDXC2019-08-31 7:14 AMRaspbian GNU/Linux 10 (buster)armv7l
9234mickiedSanDisk Extreme PortableView Product4B 1.1SSD (Portable)SanDiskSD9SN8W256G250N/A2031223721983489488793436550309251849936382300.25SSD2019-08-31 10:08 AMRaspbian GNU/Linux 10 (buster)armv7l
1439sdrasp1.3minecraftSonyView Product3B+ 1.3Class 10 U1SonyUSD001609/201823.312902773516011095975550998464474335.65SDHC2019-09-04 11:59 AMRaspbian GNU/Linux 10 (buster)armv7l
1668AnonymousSanDisk ExtremeView Product4B 1.1A1 Class 10 V30 U3SanDiskSE64G6404/201837.4142636325707145281009529609455488740.83SDXC2019-09-04 7:21 PMRaspbian GNU/Linux 10 (buster)armv7l
1330JMSanDisk UltraView Product4B 1.1A1 Class 10SanDiskSB64G6410/201821.010542929421811719948636489245391741.62SDXC2019-09-05 11:36 AMUbuntu 18.04.3 LTSaarch64
1497AnonymousKingston DigitalView Product4B 1.1Class 10 U1PhisonSD64G6405/201919.2148430745938122971099148918920513941.44SD2019-09-07 5:52 AMUbuntu 18.04.3 LTSaarch64
1386sdcard01SanDisk ExtremeView Product4B 1.1A2 Class 10 V30 U3SanDiskSN64G6405/201937.410622924424811696864324957375374340.46SDXC2019-09-10 2:25 AMRaspbian GNU/Linux 10 (buster)armv7l
1394AnonymousSamsung Evo+View Product4B 1.1Class 10 U1SamsungEB1QT3207/201825.812113241484612967977626639758365040.37SDHC2019-09-10 10:00 AMRaspbian GNU/Linux 10 (buster)armv7l
1571leo'sTestSamsung Evo+View Product4B 1.1Class 10 U3SamsungED4QT12812/201730.01350324854031299411275420411030402933.43SDXC2019-09-12 11:10 AMRaspbian GNU/Linux 10 (buster)armv7l
9238jangaSamsung 860 EvoView Product4B 1.1SSD (2.5" SATA)SamsungSSD860EVO250GB250N/A1961211522515484619006136918309651938836646331.49SSD2019-09-15 12:19 PMRaspbian GNU/Linux 10 (buster)armv7l
1438AnonymousKingston Canvas GoView Product4B 1.1A1 Class 10 V30 U3KingstonSD32G3207/201827.71281244151269765979644917734476841.90SDHC2019-09-18 2:02 AMRaspbian GNU/Linux 10 (buster)armv7l
1729AnonymousSanDisk ExtremeView Product4B 1.1A1 Class 10 V30 U3SanDiskSE32G3203/201937.7149637245984148981072531429927509441.55SDHC2019-09-20 4:05 PMRaspbian GNU/Linux 10 (buster)armv7l
1446PNYSamsung Evo SelectView Product4B 1.1Class 10 U3SamsungGD4QT12811/201827.6834316733371267110063385410000414741.49SDXC2019-09-21 5:38 PMUbuntu 18.04.3 LTSaarch64
1723AnonymousSonyView Product4B 1.1A1 Class 10 V30 U3SonyUSD006403/202539.6145438005816152011302249539423463541.68SDXC2019-09-22 2:22 AMRaspbian GNU/Linux 10 (buster)armv7l
1423AnonymousTranscendView Product4B 1.1A1 Class 10 V10 U3TranscendUSDU13205/201917.41131411245251644911859379610372396441.46SDHC2019-09-23 10:11 AMRaspbian GNU/Linux 10 (buster)armv7l
9716Luc HSamsung 860 EvoView Product4B 1.1SSD (2.5" SATA)SamsungSSD860EVOmSATA250GB250N/A2101223122495489248998238038319522590237073304.17SSD2019-09-23 10:12 AMRaspbian GNU/Linux 10 (buster)armv7l
1445AnonymousSamsung ProView Product4B 1.1Class 10 U3SamsungFC8HT6401/201837.2775365731011463110244330810753275433.95SDXC2019-09-24 3:23 AMRaspbian GNU/Linux 10 (buster)armv7l
1676AnonymousSanDisk ExtremeView Product4B 1.1A1 Class 10 V30 U3SanDiskAFGCD3203/201737.4143736485748145931018530539523490540.89SDHC2019-09-24 6:23 PMRaspbian GNU/Linux 10 (buster)armv7l
1333hi_pat_trickSanDisk Extreme PlusView Product4B 1.1A2 Class 10 V30 U3SanDiskSR12812807/201936.710012857400511428848321687128351840.86SDXC2019-09-25 9:57 PMRaspbian GNU/Linux 10 (buster)armv7l
9196spark_343Samsung 850 EvoView Product4B 1.1SSD (2.5" SATA)SamsungSSD850EVO250GB250N/A16511721252344688610093639137307431952638457308.15SSD2019-09-27 5:22 AMRaspbian GNU/Linux 10 (buster)armv7l
1327EsperanzaSanDisk Extreme PlusView Product4B 1.1Class 10 U3SanDiskSP64G6402/201739.48373157334912629901429717557291935.23SDXC2019-09-27 8:12 AMRaspbian GNU/Linux 10 (buster)armv7l
Showing featured results only. View full results

As you can see all of the top spots in the results are held by solid state drives. Further, solid state drives beat the fastest MicroSD cards by about 300%.

MicroSD performance varied wildly based on quality of the card. But even the very best and most expensive MicroSD cards got absolutely destroyed by even the cheapest solid state drives. This is because SSDs are so fast that they are limited by the speed of the Raspberry Pi’s USB 2.0 ports.

Solid state drives also have very large write caches. This lets your Raspberry Pi push data to the drive and start doing other things and let the drive itself figure out how to organize the data. Much of the throughput and other performance differences in the above chart are because of much better and faster read/write caching.

Which SSD to Buy?

Since all models and types of solid state drives hit the Raspberry Pi’s USB 2.0 transfer speed limit you should buy the cheapest one that fits your needs!

If your Raspberry Pi is mostly stationary it’s easiest and cheapest to just use a normal 2.5″ SATA SSD with a USB adapter. Here’s my recommendation:

Raspberry Pi Cheap SSD Upgrade Guide

Kingston A400 SSD 120GB SATA 3 2.5” Solid State Drive

Raspberry Pi Cheap SSD Upgrade Guide

StarTech 2.5″ SATA to USB 3.0 Adapter

The Kingston A400 drive performs really well in the Raspberry Pi Storage Benchmarks. It’s a great drive and is cheaper than many mid-range MicroSD cards.

The 2.5″ SATA to USB adapter above allows us to do this. There is no power adapter needed as SSDs are low power and are powered by the Pi through USB.

The contenders for the RPI storage benchmarks
Several contenders for the RPI storage benchmarks

Compact SSD Options

If you move your Pi around a lot or need something more compact there are several options.

Raspberry Pi Cheap SSD Upgrade Guide

Option 1:  SanDisk Extreme Pro 128GB USB Solid State Flash Drive

There are some flash drives (a very small number) that are actually solid states. This one is the best one. I actually have a old discontinued model in my picture above. You have to be extremely careful when looking for these as 99.9% of flash drives are NOT solid states. The SanDisk Extreme Pro is a true solid state. The cheaper SanDisk Extreme and Extreme Gos are not (needs to be the pro). If you are looking at a flash drive and they don’t explicitly state it’s a solid state drive then it surely isn’t!

Option 2: Build from parts

Unless you already have an old solid state you can use the price of the adapter + the drive will likely be more than the SanDisk above. If you can find killer deals on eBay you may be able to save a little bit.

You can build a M.2 USB stick but you need to be careful with which type of M.2 drive you have/buy. They can be B-key, M-key, or M+B keyed. By far the most common and cheap ones are SATA with a B or B+M key. The adapter I have is this one.

In the picture above of different storage types you can see I am using an old mSATA drive as a USB stick. To learn how to build one see my article here. These SSDs can be picked up pretty cheap on eBay but I wouldn’t recommend buying one new as they are now specialty parts since M.2 has replaced mSATA.

Benchmark Your Storage

To get a good idea of what kind of performance improvement you can expect you can run the exact same benchmark featured in the table above.

To run the benchmark type/paste:

curl https://raw.githubusercontent.com/TheRemote/PiBenchmarks/master/Storage.sh | sudo bash

Compare your results to the other benchmarks here. Pay special attention to the 4k random read/write tests such as IOZone and FIO. These best reflect everyday usage on the Pi and determine how fast it will respond and perform.

Create Bootable Drive

Creating your bootable drive is also very easy. You simply image it the same way you would image a blank MicroSD.

I use Win32DiskImager and simply select the USB attached drive just like you would with a MicroSD card and write the image. It’s very easy!

Don’t forget to place an empty “ssh” file in the /boot directory if you want to connect via SSH.

Prevent High CPU Usage

There is an issue where using a solid state drive will cause kworker to consume around 10% of your CPU all of the time. This is due to the Pi polling constantly for a Micro SD card to be inserted.

There are two ways to fix this. One is to insert a blank Micro SD card in the Micro SD slot and leave it there all the time. The other is to add a line to your /boot/config.txt. Open up config.txt and add the following:

dtoverlay=sdtweak,poll_once

This option will tell the Pi to only check for a Micro SD card once at bootup. This means if you want to access the card it needs to be in the Pi before it boots up.

SSD With Raspberry Pi 4

The Raspberry Pi 4 does not support USB booting like it had in the 3 series at launch. They plan to add this feature back in at a later date. I have found a workaround for this so check out my guide on how to set up USB drives in the mean time.

SSD With Raspberry Pi 3

Once you have chosen your SSD it is time to configure the Raspberry Pi to boot off USB storage. Fortunately this is extremely simple. To enable booting from USB storage simply boot up your Raspberry Pi and run this command:

echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt

Alternatively you can put your MicroSD into your computer and open /boot/config.txt and add the line:

program_usb_boot_mode=1

Now reboot your Pi and USB boot support will be permanently enabled. This only needs to be done once per Raspberry Pi as the change is permanent.

You may now remove the Micro SD card altogether and plug in your external storage you prepared in the previous section. Power up the Pi and it will boot directly from the USB storage!

SSD with Raspberry Pi 1 / 2 / Zero W

The older Pi family and the Zero / Zero W also support USB booting with a small catch. You still need to have a Micro SD card inserted in the Pi with only one file on (bootcode.bin). This is because these Pis use the older
BCM2835 which is a Micro SD only bootloader.

The good news is that if we put a otherwise blank Micro SD card in there with this file the Pi can boot from USB storage just fine and take full advantage of the increased speed and storage size. Bootcode.bin basically provides the instructions to the Pi telling it how to boot from USB.

First you will format your Micro SD card as FAT32 . FAT32 is the partition type that the Pi bootloader can read and is the same format as the /boot/ partition on a fully imaged Pi card.

Next grab the latest bootcode.bin from the official Raspberry Pi repository at https://github.com/raspberrypi/firmware/raw/master/boot/bootcode.bin

Copy the bootcode.bin file onto your newly created and otherwise blank FAT32 imaged Micro SD card and then insert the Micro SD card back into the Raspberry Pi.

Now connect your USB storage back to the Pi and power it on. The Pi will boot directly from your USB storage device!

Conclusion

A solid state drive is the biggest upgrade you can give your Pi. When I am configuring my Minecraft Raspberry Pi servers the performance difference is night and day. They boot faster, respond faster and write/read much faster. It’s very difficult to go back to MicroSD after using one of these with your Pi.

This should be a future proof upgrade as well because presumably the Raspberry Pi 4 will have USB 3.0 and support much higher transfer rates. At this point the individual performance of SSD drives might actually matter but for at least the next couple of years until the Pi4 comes out it makes sense to buy the cheapest drive possible.

I highly recommend running the benchmark for yourself to get an idea of how much performance you can gain!

11 thoughts on “Raspberry Pi Cheap SSD Upgrade Guide”

    1. Avatar for jamesachambers

      It depends on the SSD. Some of them take more power than others and the USB ports will let them draw more than they are supposed to.

      For more than one drive I definitely recommend a powered USB hub.

  1. Avatar for Jeremy Niedens

    Love this upgrade….I cloned a 64GB sd card for a 120GB ssd. Now the pi can only see 64GB of the new ssd.

    I tried expanding the file size under raspi-config, but it states it’s not a SD card.

    Any ideas?

    1. Avatar for Didier B

      How did you cloned your Sd ?
      I used the SD card copy facility in the raspbian accessories, and found the files system had been silently and automatically expanded on my SSD !

  2. Avatar for Luke

    This is fantastic. My Pi2 is loads faster using a crucial 120gb ssd. I expect it will last longer than the SanDisk SD cards that my Pi routinely destroyed. Fingers Crossed.

  3. Avatar for Chris

    Followed your advice and now running/booting from an old 64GB SSD with USB adapter. One thing I noticed is that removing the micro SD card results in process KWORKER constantly running around 20% CPU or more. Quick & dirty fix seems to be to insert any old non-bootable memory card – I’m sure there are more elegant ways.

    1. Avatar for jamesachambers
      jamesachambers

      Hello Harii4,

      Thanks for the question. I have updated the article with a new section for booting a Pi / Pi 2 / Pi Zero from USB mass storage. Basically the trick is using bootcode.bin on an otherwise blank Micro SD card and the Pi will boot from USB!

Leave a Comment

Your email address will not be published. Required fields are marked *

Type here..