none
inf2cat 22.9.10 error RRS feed

  • Question

  • Hi all,

    I'm trying to sign old Hitachi driver that makes USB flash drive appear as fixed disk (Quite useful when you have fast, large thumb drives)

    Driver itself works fine but I constantly get same error when try to get it signed:

    Errors:        

    22.9.10: cfadisk.sys in [cfadisk_copyfiles] is missing from [SourceDisksFiles] section in \cfadisk.inf; driver may not sign correctly until this is resolved.
    22.9.10: disk.sys in [gendisk_copyfiles] is missing from [SourceDisksFiles] section in \cfadisk.inf; driver may not sign correctly until this is resolved.

    This is my .inf file:

    [Version]
    Signature="$Windows NT$"
    Class=DiskDrive
    ClassGuid={4D36E967-E325-11CE-BFC1-08002BE10318}
    Provider=%HGST%
    DriverVer=10/14/2012,9.9.9.9
    CatalogFile=cfadisk.cat

    [Manufacturer]
    %HGST% = cfadisk_device,ntAMD64

    [DestinationDirs]
    cfadisk_copyfiles=12    ; %SystemRoot%\system32\drivers
    gendisk_copyfiles=12    ; %SystemRoot%\system32\drivers

    [cfadisk_copyfiles]
    cfadisk.sys

    [gendisk_copyfiles]
    disk.sys

    [cfadisk_device]
    %Microdrive_devdesc% = cfadisk_install,USBSTOR\Disk&Ven_SanDisk&Prod_Extreme&Rev_0001

    [cfadisk_device.NTamd64]
    %Microdrive_devdesc% = cfadisk_install,USBSTOR\Disk&Ven_SanDisk&Prod_Extreme&Rev_0001

    [cfadisk_addreg]
    HKR,,"LowerFilters",0x00010008,"cfadisk"

    [cfadisk_install]
    CopyFiles=cfadisk_copyfiles,gendisk_copyfiles

    [cfadisk_install.HW]
    AddReg=cfadisk_addreg

    [cfadisk_install.Services]
    AddService=disk,2,gendisk_ServiceInstallSection
    AddService=cfadisk,,cfadisk_ServiceInstallSection

    [gendisk_ServiceInstallSection]
    DisplayName    = "Disk Driver"
    ServiceType    = 1
    StartType      = 0
    ErrorControl   = 1
    ServiceBinary  = %12%\disk.sys
    LoadOrderGroup = SCSI Class

    [cfadisk_ServiceInstallSection]
    DisplayName    = "CompactFlash Filter Driver"
    ServiceType    = 1
    StartType      = 3
    ErrorControl   = 1
    ServiceBinary  = %12%\cfadisk.sys
    LoadOrderGroup = Pnp Filter

    ; -----------------------

    [Strings]
    HGST = "Hitachi"
    Microdrive_devdesc = "SanDisk Extreme"

    I'm a noob so my account isn't verified so I can't post you links of signing tutotial and link where I've downloaded driver

    If anyone would like to check this driver out just search for cfadisk 64bit 

    In addition, I've used chkinf utility on .inf file and this is the result:

    C:\DriversCert\SanDisk\cfadisk.inf: FAILED
    NTLOG REPORT--------------
    Total Lines:         62  |
    Total Errors:         1  |
    Total Warnings:       4  |
    --------------------------
    Line 0: ERROR: (E22.1.1003) Section [SourceDisksNames] not defined.
    Line 0: WARNING: (W22.1.2212) No Copyright information found.
    Line 0: WARNING: (W22.1.2111) [SourceDisksFiles] section not defined - full CopyFiles checking not done.
    Line 17: WARNING: (W22.1.2112) File "cfadisk.sys" is not listed in the [SourceDisksFiles].
    Line 20: WARNING: (W22.1.2112) File "disk.sys" is not listed in the [SourceDisksFiles].

    I'm really no programer so I really don't understand what does all this mean.

    Strange thing is that driver does work, I just can't get i signed.

    Any help would be greatly appreciated

    Thank you!

    Best regards,

    Walter



    • Edited by wrotter Tuesday, October 16, 2012 7:39 AM
    Tuesday, October 16, 2012 6:51 AM

Answers

All replies

  • Hi,

    It seems that you are trying to sign the driver when some of the files defined in "SourceDisksFiles" does not exists in the folder of the .sys file (e.g. cfadisk.sys)

    Alon

    Tuesday, October 16, 2012 8:57 AM
  • Goal is to digitally sign a driver which makes USB thumb drives appear as fixed disks rather than removable media so they could be partitioned and handled as any other disk.

    " Try instead to enable caching in Dev. Manager."

    How would that help me?

    Thank you!

    Best regards,

    Walter

    Tuesday, October 16, 2012 1:14 PM
  • try running chkinf on your INF to see if you get more actionable error messages.

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Tuesday, October 16, 2012 4:17 PM
  • Did run chkinf on the .inf

    Results are near the end of my first post.

    Here are those results again:

    C:\DriversCert\SanDisk\cfadisk.inf: FAILED
    NTLOG REPORT--------------
    Total Lines:         62  |
    Total Errors:         1  |
    Total Warnings:       4  |
    --------------------------
    Line 0: ERROR: (E22.1.1003) Section [SourceDisksNames] not defined.
    Line 0: WARNING: (W22.1.2212) No Copyright information found.
    Line 0: WARNING: (W22.1.2111) [SourceDisksFiles] section not defined - full CopyFiles checking not done.
    Line 17: WARNING: (W22.1.2112) File "cfadisk.sys" is not listed in the [SourceDisksFiles].
    Line 20: WARNING: (W22.1.2112) File "disk.sys" is not listed in the [SourceDisksFiles].

    Unfortunately I have no clue about programing so I have no idea what does all that mean and how to fix the issue.

    Thank you!

    Best regards,

    Walter

    Tuesday, October 16, 2012 7:24 PM
  • the warning is pretty clear, you are missing a [SourceDisksFiles] section, http://msdn.microsoft.com/en-us/library/windows/hardware/ff547472(v=vs.85).aspx


    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Tuesday, October 16, 2012 9:30 PM