none
Cloning an image on a CF card - WINCE 4.1 .NET RRS feed

  • Question

  • Is it possible to clone a WINCE 4.1 .NET image used as a drive on an embedded unit? I have multiple units but one CF card mechanically failed.  A CF card from a duplicate unit works fine, but all attempts to clone it in multiple ways have failed.

    What is the correct procedure to clone this?

    Wednesday, February 27, 2019 10:24 PM

Answers

  • Use a tool like HXD32 to create a disk image from the CF card, then use it to write that disk image to another CF card (of the same size).

    Be sure to start HXD32 as administrator, then choose "Open disk" from the tools menu, select the physical disk you want to create the image of, then go to File -> Save as to save the disk image. Then open the disk image, select all, press CTRL-C, then insert the CF card you want to write the image to and open that disk. Make sure to deselect "Open as Readonly" in the bottom left of the dialog.

    Now paste the data over and File->Save.

    This is from memory (so it may be slightly different). Anyway, HXD is a great tool for this. I use it for all my hex edit and disk imaging needs. There's also something like Win32DiskImager, and a million other tools you can use.


    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: https://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    NXP Proven Partner
    https://guruce.com
    Consultancy, training and development services.

    Interested in WEC on i.MX6?
    Get the only 100% stable and best performing i.MX6 BSP for WEC7 and WEC2013 here: https://guruce.com/imx6

    Thursday, February 28, 2019 11:50 AM
    Moderator

All replies

  • Use a tool like HXD32 to create a disk image from the CF card, then use it to write that disk image to another CF card (of the same size).

    Be sure to start HXD32 as administrator, then choose "Open disk" from the tools menu, select the physical disk you want to create the image of, then go to File -> Save as to save the disk image. Then open the disk image, select all, press CTRL-C, then insert the CF card you want to write the image to and open that disk. Make sure to deselect "Open as Readonly" in the bottom left of the dialog.

    Now paste the data over and File->Save.

    This is from memory (so it may be slightly different). Anyway, HXD is a great tool for this. I use it for all my hex edit and disk imaging needs. There's also something like Win32DiskImager, and a million other tools you can use.


    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: https://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    NXP Proven Partner
    https://guruce.com
    Consultancy, training and development services.

    Interested in WEC on i.MX6?
    Get the only 100% stable and best performing i.MX6 BSP for WEC7 and WEC2013 here: https://guruce.com/imx6

    Thursday, February 28, 2019 11:50 AM
    Moderator
  • Thanks.  I haven't tried HXD32.  I'll give it a try and report back.

    I have tried Win32DiskImager already.  It did not work.  Neither did dd, Clonezilla, RawCopy, Acronis or a handful of other programs I have used.  I even sent the disk off to a professional disk copying service for a bit-for-bit clone.  Two copies were made and neither worked.  One reported "Boot Error" and the other "Missing Operating System" and they were ostensibly exact copies of each other.

    I'm just so confused as to why this is so hard to do.  What is so special about the way the disk is formatted and booted from every other operating system?

    Thursday, February 28, 2019 3:17 PM
  • I tried HxD.  It's a cool program.

    I saved an image from the "source" card.  I got an error "only files can be reloaded", but it saved an image anyway.

    When I wrote the copied code from the image to the "destination" card, everything seemed to go smoothly. I put the card into the kontron MOPSlcdGX1, fired it up, and got the usual "Boot error".

    I assume this in reference to something in the bootloader or partition table being something weird, since when I used Clonezilla I got the message:

    The partition table in this disk is illegal/invalid: /dev/sda It's not supported by parted. Parted is used in Clonezilla to parse the filesystem in the partition table. This partition table is detected as WRONG by parted!

    What's so special about the way these disks are formated?

    Thursday, February 28, 2019 10:13 PM
  • There is (or should be) nothing special about the formatting in CE. Probably your "source" disk was already corrupted. That can, most likely, be fixed but will require a bit of analysis that will fall outside of what we can support you with in these forums...


    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: https://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    NXP Proven Partner
    https://guruce.com
    Consultancy, training and development services.

    Interested in WEC on i.MX6?
    Get the only 100% stable and best performing i.MX6 BSP for WEC7 and WEC2013 here: https://guruce.com/imx6

    Thursday, February 28, 2019 10:48 PM
    Moderator
  • CUFarley

    Are the OS image, nk.bin, and bootloader, something like eboot.bin, visible as files ont he CF card.  I think that Michel, and I, are expecting that they are - but it is possible that they are not.


    Bruce Eitman
    Senior Enginer
    Bruce.Eitman AT Synopsys DOT com
    My BLOG http://geekswithblogs.net/bruceeitman
    I work for
    Synopsys

    Monday, March 4, 2019 2:05 PM
    Moderator
  • Hi. I’m having the same problem. Have you figured out how to close the disk. Thanks
    Friday, August 7, 2020 9:42 PM