• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • Meet the Robot Besties
  • About Us
Robot Besties Website Header

Robot Besties!

Experiments and Adventures with Robot Friends

This site uses affiliate links to support itself at no additional cost to you. We link to products we love from companies we support.
In the true spirit of “Robot Besties” we may have had the help of AI when creating our content here too!

You are here: Home / Computing Hardware / How to Backup Your Robot Bestie: Making a Backup Copy of a Raspberry Pi MicroSD Card, Step by Step

How to Backup Your Robot Bestie: Making a Backup Copy of a Raspberry Pi MicroSD Card, Step by Step

October 9, 2023 by robotbesties

DALL-E Generated: How to make a backup of a Raspberry Pi SD card, step by step

Let’s backup that bestie! Ever get to a really good stopping place on your project… but then you fly too close to the sun and it just stops working and you can’t remember all the changes you made and/or rolling them back just seems like a monumental task? Or did you do what I did and take an upgrade a little too far? Well, recently I did this very thing while working with an otherwise wonderful robot arm kit from Yahboom. In short, I updated protobuf to use the Viam server software and in the process didn’t realize that the Yahboom applications required an older version of protobuf. Fortunately, rolling it back brought everything back online for the default app… but now I want to also be able to use it with Viam. So, my plan is to make a backup copy of the currently working stock software from Yahboom, and keep that MicroSD card handy, but also have an experimental MicroSD card where I can run the new version of protobuf and get this robot arm talking to Viam! The best of both worlds… then I also started thinking about how sometimes MicroSD cards just go bad and it’s a good idea to keep backups anyway. So, that’s what inspired this little guide.

Please understand that this is like all things on the Robot Besties website: a work in progress. We’ll soon have our comments section ready for your suggestions, recommendations, and improvements!

Raspberry Pi MicroSD Card Backup Option 1: Command Line

  • Pros: No need to install additional software
  • Cons: SLOW, “kinda” advanced, requires a MacOS or Linux system, may use a lot of disk space on your computer if the MicroSD card you’re using is large.

I referenced the guide here: https://howchoo.com/pi/create-a-backup-image-of-your-raspberry-pi-sd-card-in-mac-osx/, but made some changes.

  1. Safely shut down your Raspberry Pi project and remove the MicroSD Card.
  2. Place the MicroSD Card into an adapter or reader for your computer
  3. Open the terminal program and enter the following:
     diskutil list
  4. Look at the results to find the correct volume, depending on your setup, you’ll see a few /dev/disk(number) entries. Look for the one which has “Windows_FAT_32 system-boot” In my example below:
    screenshot of the results of diskutil list command
  5. Depending on how your permissions are set up on your computer, you may need to go ahead and create the destination file before proceeding. In my case I named a file YahboomRobotArm.dmg in my user directory. Unless you have changed directories in terminal, you’re likely in your user directory already. You can check to see what directory you’re currently in by typing the “print working directory” command:
    pwd
  6. Create an empty file in your directory of choice, in my example, I’m going to remain in my user directory with the following command. Use a filename of your choice, but on MacOS be sure that the extension is .dmg :
    touch YahboomArmBackup.dmg
  7. Now that the file is created, it’s time to start the process of actually backing up the MicroSD card with the following command:
    sudo dd if=/dev/disk4 of=YahboomArmBackup.dmg

    Please note that this process will take a while depending on the size of the MicroSD card and your computer. The cursor may just sit there and blink (or not, in my case it just sat there in gray) until the process is complete. This could take 15-60mins or more. I opened a second terminal window and typed

    ls -l

    periodically to see that the file is getting larger.

  8. When the process was complete, I just closed the terminal and ejected the SD card normally from my Mac by clicking the “eject” icon next to the drive in the Finder.
  9. Now, you have a .dmg file you can use for flashing onto another MicroSD card using balenaEtcher or your favorite SD/MicroSD card utility.

Raspberry Pi MicroSD Card Backup Option 2: Using Software Tools

Step 1: Gather the necessary items:

  • Raspberry Pi with an SD card inserted
  • A computer with an SD card reader
  • An SD card reader (if your computer doesn’t have one)
  • An external storage device (USB drive or hard disk) with sufficient space to store the backup

Step 2: Install the Required Software

Before proceeding, ensure that you have the required software installed on your computer. We recommend using the open-source application called “Win32 Disk Imager” for Windows users and “Apple Pi Baker” for macOS users. These tools simplify the backup process and are widely used within the Raspberry Pi community.

Step 3: Connect the SD Card to Your Computer

Remove the SD card from your Raspberry Pi and insert it into the SD card reader on your computer. If your computer doesn’t have an SD card reader, use an external SD card reader instead.

Step 4: Launch the Backup Software

Open the backup software you installed in Step 2. Ensure that the software recognizes the SD card by selecting the appropriate drive letter or device name.

Step 5: Select the Backup Destination

Connect your external storage device (USB drive or hard disk) to your computer. In the backup software, select the destination folder where you want to save the backup file. Ensure that the destination has enough free space to accommodate the backup.

Step 6: Start the Backup Process

In the backup software, click on the “Backup” or “Create Backup” button to initiate the backup process. The software will create an image file of your Raspberry Pi’s SD card, including the operating system, files, and configurations.

Step 7: Wait for the Backup to Complete

The backup process may take some time, depending on the size of your SD card and the speed of your computer. Be patient and avoid interrupting the process to ensure a successful backup.

Step 8: Verify the Backup

Once the backup process is complete, it’s crucial to verify the integrity of the backup file. Most backup software provides an option to verify the backup against the original SD card. Use this feature to ensure that the backup is accurate and complete.

Step 9: Safely Eject the SD Card and External Storage Device

After verifying the backup, safely eject the SD card from your computer and remove the external storage device. This step ensures that no data is lost or corrupted during the removal process.

Congratulations! Your Project is Backed Up!

Creating a backup of your Raspberry Pi’s MicroSD card is a crucial step in safeguarding your data and system configurations. Remember to regularly update your backups to reflect any changes or updates made to your Raspberry Pi.

Related

Filed Under: Computing Hardware, Ideas, Open Source, Technical Details Tagged With: backups, MicroSD card, Raspberry Pi, Tutorial

Robot Kits and Goodies on Amazon!

XGO Raspberry Pi 4CM Robot Dog!

XGo Lite Micro:bit Robot Dog!
UNIHIKER IoT Python Single Board Computer with Touchscreen!
Elegoo Arduino Starter Kits! (we love these)
MakeBlock MBot MEGA!

Primary Sidebar

Search

More to See

DALL-E Generated Image: Steppers vs. Servos: How to choose the right motors for your robot

Steppers vs. Servos: Navigating the Motor Maze for Your Robotics Project

May 27, 2024 By robotbesties

DALL-E Generated Image: Low Power, Raspberry Pi based NAS for Your Robotics Data

Building a Low-Power, Raspberry Pi-Based NAS for Your Robotics Data

July 21, 2024 By robotbesties

Robot Roll Call!

  • XGO2 Lite
  • The Drawing Robot
  • Makeblock mBot Mega
  • Stanford Pupper
  • Mini Pupper (Mang Dang)
  • Viam Robotics Rover

Besties Accessories

  • KYY Portable Monitor
    Review coming soon for this highly recommended monitor - HDMI and USB-C connectors mean you can use it as a laptop 2nd monitor or for a primary Raspberry Pi monitor too!

Tags

3d Printed Agility Robotics ANYbotics ANYmal Arduino Automation autonomous robotics ChatGPT companion robots Digit Robot DIY robot Dreamebot drones electromagnet Futurism Kevin McAleer Laser Cutter Laser Engraver Maker maker electronics Maker Tools manufacturing MicroSD card NAS NAS Systems OpenAI opinions Orange Pi Python Raspberry Pi RobotBesties.com Robotics Startup robot projects robot vacuum ROS SBC Sensors SSD SSD PCIe NVMe Drive UniHiker Viam Viam Robotics Viam Robotics Rover YouTuber Zapier

Footer

More Besties…

Visit our smart garden friends – while they’re not robots, they will soon have some robot assistants. For now, ChatGPT is writing haiku poems about the beautiful edible plants growing in the indoor smart gardens.

Read Some Robot-Generated Poems!

Recent

  • Should you use a NAS for home automation and your robotics projects?
  • What’s the best laser cutter for maker projects?
  • Building a Low-Power, Raspberry Pi-Based NAS for Your Robotics Data
  • Crafting Your AI Sidekick: Building an AI Desktop Assistant with ChatGPT
  • Does a NAS need to be a dedicated machine or can it double as your regular computer?

Search

Tags

3d Printed Agility Robotics ANYbotics ANYmal Arduino Automation autonomous robotics ChatGPT companion robots Digit Robot DIY robot Dreamebot drones electromagnet Futurism Kevin McAleer Laser Cutter Laser Engraver Maker maker electronics Maker Tools manufacturing MicroSD card NAS NAS Systems OpenAI opinions Orange Pi Python Raspberry Pi RobotBesties.com Robotics Startup robot projects robot vacuum ROS SBC Sensors SSD SSD PCIe NVMe Drive UniHiker Viam Viam Robotics Viam Robotics Rover YouTuber Zapier

Copyright © 2025 · A Modus Praxis LLC Brand · Privacy Policy