What an external drive does for your Raspberry Pi
A Raspberry Pi comes with limited built-in storage — usually between 16 and 128 gigabytes depending on the model. An external drive (also called a USB drive or external hard drive) plugs into one of the Pi's USB ports and gives you extra space to store files, programs, or operating system backups without filling up the internal storage.
Most people add external storage because the Pi's built-in space fills up quickly when you're running media servers, storing video files, or logging sensor data over weeks or months. The external drive stays connected and works like an extra folder on your system — you can read from it, write to it, and move files between the internal storage and the external drive.
You do not need any special software to use an external drive with a Raspberry Pi. You plug it in, the Pi recognizes it, and you can start using it when ready. The setup takes about five minutes if you're starting fresh.
Key Takeaways
- External drives plug directly into the Raspberry Pi's USB ports and show up as a folder you can access right away.
- Most external drives work without any setup, but you may need to format a new drive first if the Pi does not recognize it.
- You can move your operating system to an external drive to free up internal storage, but this requires a few extra steps using command-line tools.
- Powered external drives (with their own power supply) are more reliable than bus-powered drives for continuous use on a Raspberry Pi.
- Check the drive's file system format — NTFS drives work on newer Pi models, but older ones may need FAT32 or ext4 for full compatibility.
Plugging in a drive and using it when ready
The simplest way to add external storage is to plug a USB drive or external hard drive into any available USB port on your Raspberry Pi. The Pi will recognize it within a few seconds. Open the file manager (the folder icon on the desktop), and you should see the drive listed on the left side under a name like "USB Drive" or the drive's actual brand name.
Click on the drive name to open it. You can now copy files to and from the drive the same way you would on any computer — drag and drop, or right-click and select copy or move. The drive is ready to use without any additional steps.
If the drive does not appear in the file manager after 30 seconds, the Pi may not recognize its file system format. This happens most often with very new drives or drives that were previously formatted for Windows. In that case, you will need to format the drive first (see the section below on formatting).
Formatting a drive so the Raspberry Pi recognizes it
A file system format is the way a drive organizes and labels its storage space. Raspberry Pi models from 2021 onward can read NTFS (the Windows format), but older Pi models cannot. If your Pi does not recognize a drive, formatting it to a format the Pi understands will fix the problem.
The easiest approach is to use the Raspberry Pi's built-in formatting tool. Right-click on the drive in the file manager and select "Format" or "Empty Trash" (the exact wording depends on your Pi's operating system version). Choose ext4 as the format — this is the standard format for Raspberry Pi and Linux systems. Ext4 will erase everything on the drive, so move any files you want to keep first.
If the right-click menu does not show a format option, open a terminal window (the black icon on the taskbar) and type the command sudo mkfs.ext4 /dev/sda1, replacing sda1 with the actual drive name if it is different. The terminal will ask you to confirm — type y and press Enter. The format will complete in a few seconds for a small drive, or a few minutes for a large one.
Moving your operating system to an external drive
If you want to run your entire Raspberry Pi operating system from an external drive instead of the internal storage, you can copy the operating system to the external drive and boot from it. This frees up all the internal storage for other uses and is useful if you plan to run the Pi for long periods and need lots of space for logs or data files.
The process involves three steps: first, create a backup image of your current operating system using the Raspberry Pi Imager tool (available free from the official Raspberry Pi website). Second, write that image to the external drive using the same Imager tool. Third, plug the external drive into the Pi, restart it, and change the boot order in the Pi's settings to prioritize the external drive.
To change the boot order, restart your Pi and hold down the Shift key while it starts up. This opens the boot menu. Select the external drive from the list. On newer Pi models (Pi 4 and later), you can also change the boot order permanently through the Settings menu under "Startup" or "Boot Options" — the exact location depends on your operating system version.
This approach is more complex than straightforward plugging in a drive, and it is only necessary if you need the internal storage for something else or if you want a portable operating system you can move between different Pi boards.
Choosing between powered and bus-powered drives
External drives come in two types: bus-powered drives that draw power from the USB port itself, and powered drives that have their own power supply and plug into an outlet. For a Raspberry Pi, powered drives are more reliable, especially if you plan to leave the Pi running continuously.
Bus-powered drives (most USB thumb drives and some small external hard drives) draw power from the Pi's USB port. This works fine for occasional use, but if the Pi is running 24/7 or if you are transferring large files frequently, the drive may overheat or disconnect unexpectedly because the USB port cannot supply enough stable power.
Powered external hard drives have their own power adapter and are designed for continuous operation. They are larger and more expensive than bus-powered drives, but they are worth the investment if you are building a media server, a security camera system, or any other project that needs to run without interruption. A powered drive will also transfer files faster because it has more power available for the read and write operations.
Checking file system compatibility
Before you buy an external drive or format one you already own, check what file system format your Raspberry Pi can read. This matters because older Pi models have limitations that newer ones do not.
Raspberry Pi models from 2021 onward (Pi 4 with the latest firmware, Pi 400, and Pi 5) can read NTFS, FAT32, and ext4. Older models (Pi 3 and earlier) can read FAT32 and ext4, but not NTFS. If you have an older Pi and you plug in a drive that is formatted as NTFS, the Pi will not recognize it.
The safest choice for any Raspberry Pi is ext4, which works on all models and is the native format for Raspberry Pi's operating system. If you need to move files between the Pi and a Windows computer, FAT32 is compatible with both, though it has a file size limit of 4 gigabytes per file — this matters if you are storing large video files or disk images.
Troubleshooting a drive that does not appear
If you plug in an external drive and it does not show up in the file manager, try these steps in order. First, restart the Raspberry Pi with the drive already plugged in — sometimes the Pi needs to detect the drive during startup. Second, try a different USB port on the Pi, because one port may be damaged or disabled. Third, check whether the drive has a power button or switch — some external hard drives have a physical on/off switch that must be turned on.
If the drive still does not appear, open a terminal and type lsblk to see a list of all storage devices the Pi can detect. If the drive appears in this list but not in the file manager, the file system format is likely the problem — format it to ext4 as described above. If the drive does not appear in the lsblk list at all, the drive itself may be failing or the USB port on the Pi may be damaged.
Frequently Asked Questions
Can I use an external drive that was formatted for Windows or Mac?
Yes, if your Raspberry Pi is from 2021 or later and the drive is formatted as NTFS (Windows). If your Pi is older or the drive is formatted as APFS (Mac), you will need to reformat the drive to ext4 or FAT32 first. Reformatting erases the drive, so back up any files you want to keep.
Do I need to safely eject an external drive before unplugging it?
Yes. Right-click the drive in the file manager and select "Eject" or "Unmount" before unplugging it. This ensures any files being written to the drive are finished and saved. Unplugging without ejecting can corrupt files or damage the drive's file system.
How much external storage do I actually need?
This depends on what you are storing. A media server with movies needs 500 gigabytes to several terabytes. A security camera system recording 24/7 needs 1 to 2 terabytes per month depending on resolution. A general-purpose Pi with documents and programs needs 64 to 256 gigabytes. Start with what you think you need and add 50 percent as a buffer.
Can I use multiple external drives at the same time?
Yes. Most Raspberry Pi models have at least two USB ports, and you can plug in multiple drives simultaneously. Each drive will appear as a separate folder in the file manager. Be aware that multiple drives drawing power from the same Pi may cause power issues — use powered drives if you plan to connect more than one.
What is the difference between a USB drive and an external hard drive?
A USB drive (thumb drive) is small, portable, and bus-powered, but slower and less durable for continuous use. An external hard drive is larger, faster, and designed for constant operation, but requires its own power supply. For a Raspberry Pi project that runs continuously, an external hard drive is the better choice.