Clone Existing Raspberry Pi OS to a Bigger (or smaller) SD Card

Need more space on your Pi? How about cloning it to a bigger SD card? Here's how to do that.
Warp Terminal

Here's the scenario. You bought a Raspberry Pi and used a 16 GB or 32 GB micro SD card with it. Things look good but you realize that you are going to need more space. What can you do now?

While there are several things you can do to extend the storage of your Raspberry Pi, the simplest solution I find is to clone the existing Raspberry Pi OS onto a bigger SD card.

This way, you keep your existing operating system as it is. Nothing is changed except the increased disk space.

Sounds wonderful, isn't it? Let me show you how I extend my existing 32 GB Raspberry Pi OS setup to a 128 GB SD card.

πŸ“‹
This tutorial is performed on a Raspberry Pi 5 with Raspberry Pi OS installed on it.

What you need

Raspberry Pi has only one micro SD card slot. So you need some other medium to copy the existing OS.

I recommend getting a USB to Micro SD adapter device. It is an inexpensive device that lets you insert the SD card in it and then plug it in another device through the USB port.

Put the new SD card in this device, plug it in the USB port of Raspberry Pi and use the SD Card Copier tool to copy the existing Raspberry Pi OS on the new card.

Once the copying is done, you can turn off the Pi, replace the old SD card with the new one and boot from it.

Step 1: Format the new SD card

Once you have the device, insert the micro SD into it and then plug the device into the Raspberry Pi. Here's a picture of my setup.

microSD to USB adapter for Raspberry Pi

It is always a good idea to format the SD card you plan to use. For this purpose, use the gparted tool.

You need to install it first:

sudo apt install gparted

Once installed, run the tool. Since you are using a USB adapter, the new storage is seen as USB, not SD card. Select the appropriate SD card from the top right, create a new partition on it and apply the changes.

The above process may take some time.

Step 2: Clone the SD card

Click on the menu, go to Accessories and then click on SD Card Copier.

SD Card Copier in Raspberry Pi OS

In the SD Card Copier tool, choose your original SD Card which Raspberry Pi is using in the Copy From Device field. And in the Copy to Device field, use the new SD card (which is basically seen as USB).

Once you have appropriately selected the devices, hit start.

Copy SD card in Raspberry Pi

It takes some time to complete the copying.

Cloning a SD card in Raspberry Pi OS

Step 3: Using the new SD card

This is obvious. Once the process completes, power off the Raspberry Pi. Take out the existing SD card and plug in the new one.

Power it on again and you'll notice that everything remains as it is. Your device boots into the same operating system; it has the same applications and configuration as before except that you have a bigger storage now.

πŸ’‘
If you have two or more Raspberry Pi devices, this way, you should be able to use a similar operating system on all of them as long as the devices are of the same type (Pi 5 and Pi 4 won't be compatible).

Conclusion

Cloning one SD card to another is effortless in Raspberry Pi OS as long as you can connect two SD cards to the Pi simultaneously.

I copied smaller SD card to bigger but you should be able to do the opposite as well. You can copy your existing Raspberry Pi OS from bigger SD card to smaller SD card as long as your existing card is not using more space than the new one.

I hope you find this tutorial helpful in exploring the potential of your Raspberry Pi. Enjoy πŸ˜„

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries πŸ•΅οΈβ€β™‚οΈ

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.