EP9302 Restore CF: Difference between revisions

From embeddedTS Manuals
(Created page with "If backing up on a separate workstation, keep in mind windows does not have direct block device support needed to write these images. You will also need to determine the CF card...")
 
(Confusing mixture of CF and SD instructions. Removed confusion. CF contains only a filesystem.)
 
Line 2: Line 2:


If you are backing up directly on the board you will likely need to use some kind of offboard storage like a thumbdrive or external hard drive.
If you are backing up directly on the board you will likely need to use some kind of offboard storage like a thumbdrive or external hard drive.
You can find the latest CF card image [ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7200-linux/binaries/ts-images/2gbsd-may262011.dd.bz2 here] which will contain the Debian OS.  Make sure you decompress the image before writing.


'''Backup '''
'''Backup '''


Entire SD card
Entire CF card
<source lang=bash>
<source lang=bash>
dd if=/dev/mmcblk0 of=/path/to/backup.dd bs=32k
dd if=/dev/mmcblk0 of=/path/to/backup.dd bs=32k
</source>
Kernel
<source lang=bash>
dd if=/dev/mmcblk0p2 of=/path/to/zImage bs=32k
</source>
Initrd
<source lang=bash>
dd if=/dev/mmcblk0p3 of=/path/to/initrd bs=32k
</source>
</source>


''' Restore'''
''' Restore'''


Entire SD card
Entire CF card
<source lang=bash>
<source lang=bash>
dd if=/path/to/backup.dd of=/dev/mmcblk0 bs=32k
dd if=/path/to/backup.dd of=/dev/mmcblk0 bs=32k
</source>
Kernel
<source lang=bash>
dd if=/path/to/zImage bs=32k of=/dev/mmcblk0p2
</source>
Initrd
<source lang=bash>
dd if=/initrd bs=32k of=/dev/mmcblk0p3
</source>
</source>

Latest revision as of 16:12, 2 April 2013

If backing up on a separate workstation, keep in mind windows does not have direct block device support needed to write these images. You will also need to determine the CF card device. You can usually find this in the output of 'dmesg' after inserting the CF card and you will typically see something like '/dev/sdb' as the block device and '/dev/sdb1' for the first partition. On some newer kernels you will see '/dev/mmcblk0' as the block device and '/dev/mmcblkop1' for the first partition. For these examples I will use the '/dev/mmcblk0' format.

If you are backing up directly on the board you will likely need to use some kind of offboard storage like a thumbdrive or external hard drive.

Backup

Entire CF card

dd if=/dev/mmcblk0 of=/path/to/backup.dd bs=32k

Restore

Entire CF card

dd if=/path/to/backup.dd of=/dev/mmcblk0 bs=32k