About writing Server Recovery application RRS feed

  • Question

  • I wrote a server recovery application using WHS_Recovery_DLL.dll from WHS OPK.
    Two server image files partition.table and volume.image were prepared readily.
    The application calls the APIs in the WHS_Recovery_DLL.dll by the following order:


    I've tested the above procedures several times on the same board and SATA HDD, and then found that PFN_CleanPrimaryDisk would sometimes succeed but sometimes return Error Code PartWriteError (6). The strange thing is that it did not always fail or always succeed.

    Could you please give me some hint about this problem?

    The OPK User's Guide I referenced is Version 3 (published on May 2008).
    The version of WHS_Image.exe and WHS_Recovery_DLL.dll is 6.0.1788.0.

    Sylvia Lin

    • Moved by Ken WarrenModerator Thursday, October 9, 2008 8:08 PM moved to dev forum (Moved from Windows Home Server Software to Windows Home Server Add-Ins and Developer Information)
    Thursday, October 9, 2008 10:31 AM

All replies

  • Hi Sylvia,
    sounds interesting, but I think this question fits more in the developer focussed forum for WHS here:

    I have unfortunately not to many ideas about the deeper arts of programming.
    For wiping a disk I would use diskpart with the clean parameter in a text file.

    Such random stuff - could it be a timing issue?
    Best greetings from Germany
    Thursday, October 9, 2008 12:06 PM
  • Hi Olaf,

    Thanks for your kindly reply.

    As you mentioned, the timing issue is what exactly I want to ask.
    Since I have no idea about the implementation of PFN_CleanPrimaryDisk function in the recovery SDK which is provided by Microsoft, I can not make sure if there is any race condition in this function, or what rules I have to follow when developing my own server recovery application.

    Monday, October 13, 2008 7:57 AM