Raspberry Pi SD Cloning

From Wurst-Wasser.net
Revision as of 10:17, 20 July 2013 by Heiko (talk | contribs) (→‎Restore)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This article is about backupping and restoring the SD card of a Pi.

Backup

HeiMac:~ root# df -h | grep /Volumes
/dev/disk3s1    56Mi   19Mi   37Mi    34%    /Volumes/Untitled
HeiMac:~ root# 
HeiMac:~ root# umount /Volumes/Untitled 
HeiMac:~ root# dd if=/dev/rdisk3 of=/Users/heiko/Desktop/piBackup.img bs=1m

Restore

dd if=/Users/heiko/Desktop/piBackup.img of=/dev/rdisk3 bs=1m
umount /Volumes/Untitled 

If you restored on a SD card with with higher capacity, remember to use raspi-config to expand the filesystem.