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 ...
Steve Robillard's user avatar
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 ...
Eric Wilson's user avatar
  • 1,735
6 votes
4 answers
25k 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-...
Jack3G's user avatar
  • 71
2 votes
4 answers
577 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 ...
Roman Matveev's user avatar
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 ...
Roman Matveev's user avatar
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 ...
ifschleife's user avatar
1 vote
3 answers
769 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?
Lana.nl's user avatar
  • 11
2 votes
2 answers
147 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 ...
iBug's user avatar
  • 315
1 vote
2 answers
673 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 ...
PiBer2's user avatar
  • 11
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 ...
Ingo's user avatar
  • 42k
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.
Milliways's user avatar
  • 59.5k