Raspberry Pi Lab

Tag: restore

Create A Baseline Image

by on Dec.30, 2013, under Installation

sd-cardNow that you have installed the stock image, configured the video, set-up the WiFi, and updated the system, it it time to do a baseline image of your new, working system.

By making your own image, you will be able to re-flash your SD card back to this current state at some point in the future.  Like, for example, if your file systems gets corrupted.

To do this you need to…

  • Properly shutdown your Rpi.  Run ‘sudo shutdown now -h‘.  The ‘h’ means halt.
  • Remove the SD card from the RPi and mount it on your Linux PC.
  • Determine the device id of the SD card.  ‘sudo fdisk -l‘.   NOT the mounted partition.  For example.  My device is /dev/mmcbkl0 but mounted partitions are /dev/mmcblk0p1 and /dev/mmcblk0p2.  You want ONLY the device.
  • Now we’ll make an image of the card… sudo dd bs=1M if=/dev/mmcblk0 of=/home/myhomedir/imagename.img
  • sudo sync
  • Remove the card, replace it in the RPi and boot up.

NOTE:  This will take quite some time to complete.  The dd command displays absolutely no indication that it is working and may appear frozen.  Be patient.

NOTE II:  The stock Occidentalis image is only 2.6Gb.  But your image, if you followed all the steps I have outlined in my previous articles, will be the full size of your SD card.  In my case, that is 8Gb.


Leave a Comment :, , , , , more...


All entries, chronologically...

Our Partners

Please take a minute to visit our partners

Looking for something?

Search the Site

If you can't find what you are looking for, please leave a comment somewhere, subscribe to our feed and hopefully your question will be answered shortly, so please visit again!