PDA

View Full Version : debian disk imaging



elhefe
17th June, 2010, 10:08 PM
hi all
i have a compact flashcard 4 gig that has debian 5.04 installed. i wondering is there a utility / program to clone the CF card to an image file or clone it directly to another 4 gig CF card?
Thanks in advance
Elhefe
:hmmmm2:

phil242
18th June, 2010, 01:29 PM
Hi,

If you have a PC with Linux, then start your PC, open a shell and plug the first CF.
Use the command "dmesg" to look and see the name of the CF device just plugged in. Let's says it's /dev/sda
Then, you need to copy to a file the CF with the command :
dd if=/def/sda of=/folder/CF_dump

Once the command finish, check the length of the file :
ls -lh /folder/CF_dump

This one should have 4GB

Unplug the CF.

Plug the virgin one.

Write the dumped one on the virgin :
dd if=/folder/CF_dump of=/dev/sda

Wait until it finish, and then remove your new fresh CF, ready to use !

You should adapt to your needs the folder / name etc. But you have all the clue to go on.

Phil

thelaw
29th June, 2010, 12:33 PM
phil242 - great tip :)

@elhefe: double check device names - if yu make mistake, you can "delete" your OS.