News How to Back Up Your Raspberry Pi as a Disk Image

Nov 22, 2020
1
0
10
0
There's a one-step way to create the compressed backup image without requiring an intermediate file.

cd /media/pi/pibkp
dd if=/dev/mmcblk0 | gzip -c - > mysys.img.gz

I did have a problem with the NTFS filesystem on the USB drive being read-only. Fixed it with:

sudo apt-get remove ntfsprogs
sudo apt-get install ntfs-3g
reboot
 
Last edited:
Jan 23, 2021
1
0
10
0
"If your drive isn’t mounted, try rebooting with the USB drive connected or you can mount it manually by typing sudo mkdir /dev/mysub to create a directory and sudo mount /dev/sda1 /dev/myusb to mount it." One of the /dev/myusb or /dev/mysub needs correction.
 

ASK THE COMMUNITY