I have a embedded development box which has a CF (Compact Flash) card and it contains linux fedora 11 OS followed by complete development code , scripts etc.
Objective: I need to take the image from CF present in the development box and upload this image into new CF cards so that when they are connected into new development machine they are ready to use without any need to load OS , development scripts etc.
What I have done so far:
I Have attached Card reader into my Ubuntu machine and took the image from the old CF card and save it for future use.
Example:
sudo dd if=/dev/sdg1 of=./backup_image.img bs=4096 , conv=sync, noerror
The image is saved under the name backup_image.imgI have taken new CF card and attached it to reader and then
umount
itsudo umount /dev/sdg1
Write zero in all blocks into new CF
Example:
sudo dd if=/dev/zero of=/dev/sdg1
Once step 3 is completed , I have copied saved image into new CF card.
Example:
sudo dd if=backup_image.img of=/dev/sdg1
Result: Successful.
But when I actually connected the new CF card into development machine , it failed to boot up .
I have compared lode CF and new CF and both has identical filesystems i.e ext3 and both has used exactly same bytes .
I am completely clueless like what I am missing here.