How to create a backup image of your SD card while your Raspberry PI is running

You can create a backup (.img) of your SD card to a network / USB drive while the card is inserted in your Raspberry PI!

  • make sure you have access to your network drive / usb drive;
    to see the devices type:
    sudo cat /etc/fstab
  • create an img of the card currently in the PI to your network drive / USB drive using the ddcommand:
    sudo dd if=/dev/mmcblk0p2 of=/home/pi/networkdrive/my.img bs=1M

    (replace /dev/mmcblk0p2 with your own SD card and /home/pi/networkdrive/my.img with your own network drive / USB drive + image file name)

Good luck!

Last update:
20-01-2016 16:27
Karl Hudgell
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Latest FAQs RSS

  1. Move docker-desktop-data distro out of System Drive (06-01-2022 13:38)
  2. Custom Button Card (23-11-2020 10:02)
  3. NodeJS on Raspberry Pi Zero (12-10-2020 12:47)
  4. Useful Notes (13-11-2019 12:51)
  5. Dockerized Download VM (30-01-2019 20:26)