Raspberry Pi SD Cloning: Difference between revisions
Jump to navigation
Jump to search
(6 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
== Backup == | == Backup == | ||
HeiMac:~ root# df -h | grep /Volumes | HeiMac:~ root# df -h | grep /Volumes | ||
/dev/disk3s1 56Mi 19Mi 37Mi 34% /Volumes/Untitled | /dev/<b>disk3s1</b> 56Mi 19Mi 37Mi 34% /Volumes/Untitled | ||
HeiMac:~ root# | HeiMac:~ root# | ||
HeiMac:~ root# umount /Volumes/Untitled | HeiMac:~ root# umount /Volumes/Untitled | ||
HeiMac:~ root# dd if=/dev/ | HeiMac:~ root# dd if=/dev/<b>rdisk3</b> of=/Users/heiko/Desktop/piBackup.img bs=1m | ||
== Restore == | == Restore == | ||
dd if=/Users/heiko/Desktop/piBackup.img of=/dev/ | 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 <tt>raspi-config</tt> to expand the filesystem. | |||
---- | ---- | ||
Line 18: | Line 23: | ||
** http://developer-blog.net/en/hardware/raspberry-pi-backup-2/ | ** http://developer-blog.net/en/hardware/raspberry-pi-backup-2/ | ||
** http://raspberrypi.stackexchange.com/questions/311/how-do-i-backup-my-raspberry-pi | ** http://raspberrypi.stackexchange.com/questions/311/how-do-i-backup-my-raspberry-pi | ||
** http://elinux.org/RPi_Easy_SD_Card_Setup | |||
[[Category:RaspberryPi]] | [[Category:RaspberryPi]] |
Revision as of 10:17, 20 July 2013
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.