Linked Questions

332 votes
18 answers
457k views

How do I backup my Raspberry Pi?

I have been writing programs for my Raspberry Pi (running Raspbian) for a few weeks now and would like to make sure I protect the work I have done. How can I backup the files I have created? Can I ...
2 votes
4 answers
594 views

How can I share my SD card image?

I need my SD card to be cloned and shared. One of the obvious way is to use Win32DiskImager. However it has some disadvantages: It's huge: it has a size equals to the size of the cloned SD card (even ...
103 votes
9 answers
130k views

Can a Raspberry Pi be used to create a backup of itself?

This question answers the question of how I use an external computer to create a backup of my RPi. I'm wondering whether I can create a backup image of the SD card that is currently in use, and ...
6 votes
4 answers
26k views

How do I expand the file system on a Raspberry Pi 4 manually?

I have just flashed an image of my original 16 GB SD card (the one that comes in the Raspberry Pi kit) to a new 128 GB card. It booted up fine but when I tried to expand the filesystem using raspi-...
1 vote
2 answers
697 views

Failed SD Card file expand on Raspberry Pi

I´m trying to expand an SD that´s running on a Raspberry Pi. The original SD was 8Gb. I saved it to PC with Win32DiskImager, then wrote a new 32Gb SD from that image, and run the file expand option in ...
6 votes
1 answer
12k views

Easy backups and snapshots of a running system with LVM

LVM (Logical Volume Manager) has some useful enhancements. You can make a snapshot, then check new programs and if they don't work as expected or you don't like them you can simply revert to your ...
5 votes
1 answer
6k views

How to Backup/Shrink the image of my working Raspbian SD Card

I want to shrink the image to minimise storage and to efficiently distribute this image to others who may have smaller SD Cards.
3 votes
3 answers
2k views

Raspberry Pi 3 Model B SD card cloning

I have one Raspberry Pi (3 Model B) with mostly working software. I will need 6 Pi's (same model) to behave similarly. So I thought that it would be a grat idea to just clone 6 SD cards from working ...
2 votes
3 answers
2k views

apt-get update errors after copying Raspbian to new SD card

I copied a working raspbian buster installation from one SD card to another (raspberry pi 4). I did so by simply calling dd if=/dev/mmcblk0 of=raspbian bs=1M on my Notebook with the existing SD card ...
1 vote
3 answers
792 views

Can I mount an USB stick (ext4) and create a backup of the Pi using the dd command?

I want to use the following command: sudo dd if=/dev/mmcblk0 of=/mnt/myBackup.img bs=1M What if the USB drive was formatted to vfat?
2 votes
2 answers
151 views

Why is the volume ID of the root partition of Raspbian always [7ee80803]?

I noticed that no matter which microSD card I burn the Raspbian image onto, its "identifier" is always 7ee80803. This appears counter-intuitive to be because "disk identifier" is something written in ...