debian disk imaging

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • elhefe
    Member
    • Jun 2008
    • 85

    #1

    debian disk imaging

    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
  • phil242
    Newbie
    • Jun 2010
    • 10

    #2
    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

    Comment

    • thelaw
      Newbie
      • Jun 2010
      • 1

      #3
      phil242 - great tip

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

      Comment

      Working...