Backup SD Image
At some point in your use of the RPi, you're going to think "I've made a whole heap of changes to my RPi build, what if it breaks and I lose everything? How do I stop that happening?".
The answer is 'you can't' hardware fails, power glitches, sudo rm -rf *
, human error, all these types of thing can corrupt your precious SD card.
The solution is 'back it up'.
The ideal solution is to create an device image of your current SD card so you can completely rebuilt it rather than starting from a vanilla debian or fedora build.
Resources
http://elinux.org/RPi_Easy_SD_Card_Setup
Creating an SD Image
You've probably already used an image tool to burn ou SD card from an process similar to Setup:RPI. I used the windows tool win32-image-writer. win32-image-writer can also be used to create an image file.
- Shutdown you RPI using
sudo shutdown -h now
. - Remove the power from the micro USB connection
- Remove the SD card from the RPi slot.
- Insert the SD card into your Windows PC card slot
- Run the win32-image-writer utility on the windows PC
- Select the SD card in the device drop down. If oyu have more than one device, be casreful to select to correct one.
- Select the Imager Name to write to, make sure you select a *.img filename.
- Press read button to burn a binary image of the SC card to the file.
The process is slow and the imager file generated will be approximated the same size as the SC card capacity. This is because the image is a binary clone of the SD card. The img file may be zipped to reduce its size after the process is completed.
Regular Backup
If you make regular changes to your RPi its worthwhile spending the time creating these images. Tim spent backing up is always saved in rebuilding.