Why upgrade to SSD?
Solid-state drives (SSDs) offer significant advantages over traditional SD cards for Raspberry Pi:
- Speed: SSDs deliver 5–10× faster read/write speeds, reducing boot time and improving overall system responsiveness.
- Reliability: SSDs are more durable and less prone to corruption than SD cards, especially under heavy I/O workloads.
- Longevity: SSDs have higher endurance ratings, making them ideal for applications like NAS, Docker containers, and databases.
Raspberry Pi 4 and Pi 5 support native USB 3.0 boot, making it straightforward to replace your SD card with an SSD.
What you need
- Raspberry Pi 4 or Raspberry Pi 5 (Pi 3 supports USB boot but requires additional configuration)
- USB 3.0 SSD or M.2 SSD with USB adapter (SATA or NVMe)
- USB-C power supply (official Raspberry Pi power supply recommended)
- MicroSD card (for initial setup; optional after migration)
- Computer with SD card reader (for flashing Raspberry Pi OS)
Set up your SSD
1. Flash Raspberry Pi OS to your SSD
Download and install Raspberry Pi Imager on your computer.
- Connect your SSD to your computer via USB.
- Open Raspberry Pi Imager.
- Select Raspberry Pi OS (64-bit) from the operating system menu.
- Choose your SSD as the storage device.
- Click the gear icon (⚙️) to configure advanced options:
- Set hostname, enable SSH, configure Wi-Fi credentials, and set your username and password.
- Click Write to flash the OS to your SSD.
rpi-clone or dd on Linux.Configure boot from SSD
Raspberry Pi 4 and Pi 5
Recent Raspberry Pi 4 and all Pi 5 models support USB boot out of the box. If your Pi 4 is older, you may need to update the bootloader first.
Update the bootloader (Pi 4 only)
- Boot your Pi from an SD card running the latest Raspberry Pi OS.
- Open a terminal and run:
sudo rpi-eeprom-update - If an update is available, apply it:
sudo rpi-eeprom-update -a sudo reboot
Change boot order
- Run
sudo raspi-config. - Navigate to Advanced Options → Boot Order.
- Select USB Boot.
- Exit and reboot.
After rebooting, remove the SD card. Your Pi should now boot directly from the SSD.
Verify SSD boot
Once your Pi has booted, confirm it's running from the SSD:
lsblkLook for your SSD device (typically /dev/sda) mounted at /. If the SD card is still present, it may appear as /dev/mmcblk0, but it should not be the root filesystem.
Test read/write speed with:
sudo dd if=/dev/zero of=/tmp/test bs=1M count=512 conv=fdatasync
sudo rm /tmp/testSSDs typically achieve 100–400 MB/s writes; SD cards max out around 20–50 MB/s.
Troubleshooting
Pi won't boot from SSD
- Check USB port: Use a blue USB 3.0 port on the Pi 4, not the black USB 2.0 ports.
- Power supply: Ensure you're using a quality USB-C power supply. SSDs draw more power than SD cards.
- Bootloader: Update your Pi 4 bootloader to the latest version using the steps above.
- Try a different SSD or cable: Some older or low-quality USB adapters may not be compatible.
Slow performance
- Verify you're using a USB 3.0 SSD and port (USB 2.0 limits speeds to ~35 MB/s).
- Check for thermal throttling with
vcgencmd get_throttled. Add active cooling if needed.
SSD not detected
- Run
lsusbto check if the SSD is recognized by the Pi. - Test the SSD on another computer to rule out hardware failure.
Need more help?
Visit the Vilros Learn Center or contact Vilros support.