ddnewbie
驱动牛犊
驱动牛犊
  • 注册日期2003-07-25
  • 最后登录2009-04-13
  • 粉丝0
  • 关注0
  • 积分201分
  • 威望21点
  • 贡献值0点
  • 好评度20点
  • 原创分0分
  • 专家分0分
阅读:1949回复:5

文件系统mount问题

楼主#
更多 发布于:2007-08-06 14:03
本人根据Ramdisk做了一个memoryStick的驱动,
目前存储管理器里面可以看到大小,而且是对的,
还有根据打印信息,也和文件系统mount成功了,
但是在WinCE的mydevice下面就是看不到相应的盘符,
不知道是注册表那里设置的不对??还是什么原因?
谢谢大家。。。。。。
[img]D:gs.jpg[/img]
ddnewbie
驱动牛犊
驱动牛犊
  • 注册日期2003-07-25
  • 最后登录2009-04-13
  • 粉丝0
  • 关注0
  • 积分201分
  • 威望21点
  • 贡献值0点
  • 好评度20点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2007-08-06 14:08
下面是注册表相关信息:
[HKEY_LOCAL_MACHINE\Drivers\BlockDevice\MemoryStick]
    "Dll"="MemoryStick.dll"
    "Prefix"="DSK"
    "FriendlyName"="MemoryStick"
    "Order"=dword:0
    "Ioctl"=dword:4
    "IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB866}"
    "Profile"="MemoryStick"
    "BmlVolumeId"=dword:0
    "BmlPartitionId"=dword:8
    "Index"=dword:7

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MemoryStick]
    "DriverPath"="Drivers\\BlockDevice\\MemoryStick"
    "MountFlags"=dword:11
    "DefaultFileSystem"="FATFS"
    "Name"="WB910MS"
    "Folder"="MemoryStick"
    "PartitionDriver"="mspart.dll"
    "AutoMount"=dword:1  
    "AutoPart"=dword:1
    "AutoFormat"=dword:1
    "Ioctl"=dword:4
    "BootPhase"=dword:0
  
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MemoryStick\FATFS]
    "DriverPath"="Drivers\\BlockDevice\\MemoryStick"
    "Flags"=dword:00000024        
    "Dll"="fatfsd.dll"
    "Paging"=dword:1
    "EnableCacheWarm"=dword:0
    "CacheSize"=dword:0

[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\MemoryStick]
    "DriverPath"="Drivers\\BlockDevice\\MemoryStick"
    "LoadFlags"=dword:1
    "Order"=dword:0
    "BootPhase"=dword:0
[img]D:gs.jpg[/img]
ddnewbie
驱动牛犊
驱动牛犊
  • 注册日期2003-07-25
  • 最后登录2009-04-13
  • 粉丝0
  • 关注0
  • 积分201分
  • 威望21点
  • 贡献值0点
  • 好评度20点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2007-08-06 14:09
下面是debug信息:
4294769953 PID:adfc330e TID:adfc32ea 0x8dfc30a8: >>> Loading module memorystick.dll at address 0x02860000-0x0286A000 (RW data at0x01EC2000-0x01EC2554)Loadedsymbolsfor 'C:\WINCE500\PBWORKSPACES\WINBOND_NS\RELDIR\WINBOND_ARMV4I_DEBUG\MEMORYSTICK.DLL'
4294769955 PID:adfc330e TID:adfc32ea 0x8dfc30a8: MemoryStick: DSK_Init entered
4294769958 PID:adfc330e TID:adfc32ea 0x8dfc30a8: Updated eptr->e32_vsize to = 00002000
4294769959 PID:adfc330e TID:adfc32ea 0x8dfc30a8: >>> Loading module fmiisr.dll at address 0x8011D000-0x8011F000 (RW data at 0x8C281000-0x8C281028)Loadedsymbolsfor 'C:\WINCE500\PBWORKSPACES\WINBOND_NS\RELDIR\WINBOND_ARMV4I_DEBUG\FMIISR.DLL'
4294770134 PID:adfc330e TID:adfc32ea 0x8dfc30a8: 1:type[1], category[0], class[0], WP[0]
4294770178 PID:adfc330e TID:adfc32ea 0x8dfc30a8: attribute info [ffffffa5][ffffffc3]
4294770178 PID:adfc330e TID:adfc32ea 0x8dfc30a8: Memory Stick class [2]
4294770178 PID:adfc330e TID:adfc32ea 0x8dfc30a8: MemoryStick: sectors = 2097152
4294770178 PID:adfc330e TID:adfc32ea 0x8dfc30a8: MemoryStick: MemoryStick returning 0xb1ac0
4294770198 PID:adfc330e TID:adfc32ea 0x8dfc30a8: >>> Loading module mspart.dll at address 0x03C50000-0x03C5E000 (RW data at 0x01FD7000-0x01FD74AC)
Loaded symbols for 'C:\WINCE500\PBWORKSPACES\WINBOND_NS\RELDIR\WINBOND_ARMV4I_DEBUG\MSPART.DLL'
4294770199 PID:adfc330e TID:adfc32ea 0x8dfc30a8: Loading partition driver mspart.dll hModule=8DFA2E68
4294770200 PID:adfc330e TID:adfc32ea 0x8dfc30a8: Driver mspart.dll loaded
4294770203 PID:adfc330e TID:adfc32ea 0x8dfc30a8: RAMDISK:DoDiskIO - Bytes left for this sg 512
4294770203 PID:adfc330e TID:adfc32ea 0x8dfc30a8: RAMDISK:DoDiskIO - reading 512 bytes at sector 0
4294770226 PID:adfc330e TID:adfc32ea 0x8dfc30a8: RAMDISK:DoDiskIO - Bytes left for this sg 512
4294770226 PID:adfc330e TID:adfc32ea 0x8dfc30a8: RAMDISK:DoDiskIO - reading 512 bytes at sector 1905
4294770238 PID:adfc330e TID:adfc32ea 0x8dfc30a8: Opened the store hStore=000B1D20
4294770239 PID:adfc330e TID:adfc32ea 0x8dfc30a8: RAMDISK:DoDiskIO - Bytes left for this sg 512
4294770239 PID:adfc330e TID:adfc32ea 0x8dfc30a8: RAMDISK:DoDiskIO - reading 512 bytes at sector 0
4294770251 PID:adfc330e TID:adfc32ea 0x8dfc30a8: NumSec=2097152 BytesPerSec=512 FreeSec=145408 BiggestCreatable=145408
4294770251 PID:adfc330e TID:adfc32ea 0x8dfc30a8: Partition Part00  NumSectors=1949839
4294770252 PID:adfc330e TID:adfc32ea 0x8dfc30a8: MSPART!PD_OpenPartition: dwStoreId=000B1D20, PartName=Part00
4294770273 PID:adfc330e TID:adfc32ea 0x8dfc30a8: >>> Loading module fatfsd.dll at address 0x03E40000-0x03E73000 (RW data at 0x01FF0000-0x01FF065C)
Loaded symbols for 'C:\WINCE500\PBWORKSPACES\WINBOND_NS\RELDIR\WINBOND_ARMV4I_DEBUG\FATFSD.DLL'
4294770280 PID:adfc330e TID:adfc32ea 0x8dfc30a8: FSD_MountDisk: mounting volumes for hDsk=000B31E0
4294770282 PID:adfc330e TID:adfc32ea 0x8dfc30a8: RAMDISK:DoDiskIO - Bytes left for this sg 512
4294770282 PID:adfc330e TID:adfc32ea 0x8dfc30a8: RAMDISK:DoDiskIO - reading 512 bytes at sector 1905
4294770297 PID:adfc330e TID:adfc32ea 0x8dfc30a8: FATFS!OpenVolume: access time updates disabled
4294770297 PID:adfc330e TID:adfc32ea 0x8dfc30a8: FATFS!OpenVolume: event logging enabled
4294770298 PID:adfc330e TID:adfc32ea 0x8dfc30a8: FATFS!OpenVolume: automatic scanning disabled
4294770298 PID:adfc330e TID:adfc32ea 0x8dfc30a8: FATFS!OpenVolume: write verify disabled
4294770299 PID:adfc330e TID:adfc32ea 0x8dfc30a8: FATFS!OpenVolume: extra FAT on format disabled
4294770299 PID:adfc330e TID:adfc32ea 0x8dfc30a8: FATFS!OpenVolume: force write through enabled
4294770301 PID:adfc330e TID:adfc32ea 0x8dfc30a8: FATFS!OpenVolume: Codepage = 1
4294770304 PID:adfc330e TID:adfc32ea 0x8dfc30a8: FATFS!OpenVolume: Number of path cache entries = 50
4294770336 PID:adfc330e TID:adfc32ea 0x8dfc30a8: >>> Loading module diskcache.dll at address 0x03E30000-0x03E39000 (RW data at 0x01FEE000-0x01FEE4F4)
Loaded symbols for 'C:\WINCE500\PBWORKSPACES\WINBOND_NS\RELDIR\WINBOND_ARMV4I_DEBUG\DISKCACHE.DLL'
4294770339 PID:adfc330e TID:adfc32ea 0x8dfc30a8: CreateCache: Successful.  Cache Size: 119 KB, Start: 4, End: 479.
4294770340 PID:adfc330e TID:adfc32ea 0x8dfc30a8: CreateCache: Successful.  Cache Size: 238 KB, Start: 480, End: 1949838.
4294770341 PID:adfc330e TID:adfc32ea 0x8dfc30a8: RAMDISK:DoDiskIO - Bytes left for this sg 121856
4294770341 PID:adfc330e TID:adfc32ea 0x8dfc30a8: RAMDISK:DoDiskIO - reading 121856 bytes at sector 1909
4294773064 PID:adfc330e TID:adfc32ea 0x8dfc30a8: FATFS!InitVolume: FAT version: 16
4294773064 PID:adfc330e TID:adfc32ea 0x8dfc30a8: FATFS!InitVolume: Cluster Size (Sectors): 32
4294773064 PID:adfc330e TID:adfc32ea 0x8dfc30a8: FATFS!InitVolume: TFAT enabled: FALSE
4294773065 PID:adfc330e TID:adfc32ea 0x8dfc30a8: RAMDISK:DoDiskIO - Bytes left for this sg 512
4294773065 PID:adfc330e TID:adfc32ea 0x8dfc30a8: RAMDISK:DoDiskIO - reading 512 bytes at sector 2147
4294773079 PID:adfc330e TID:adfc32ea 0x8dfc30a8: FS: Registering file system MemoryStick, index 4, flags 0x00000011
4294773080 PID:adfc330e TID:adfc32ea 0x8dfc30a8: FS: Mount complete (MemoryStick, index 4, flags 0x00000011)
[img]D:gs.jpg[/img]
buaadallas
驱动牛犊
驱动牛犊
  • 注册日期2005-03-16
  • 最后登录2007-10-18
  • 粉丝0
  • 关注0
  • 积分470分
  • 威望47点
  • 贡献值0点
  • 好评度47点
  • 原创分0分
  • 专家分0分
地板#
发布于:2007-08-06 15:03
有两个地方可能会有问题
1    "DriverPath"="Drivers\\BlockDevice\\MemoryStick",不需要在每个项下面都加这个,只要在[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\MemoryStick]下加就可以了
 2   "MountFlags"=dword:11,这是表示Mounts the partition as ROM, and makes the partition not visible to users.也就是说这个分区是隐藏的!当然看不到了。
ddnewbie
驱动牛犊
驱动牛犊
  • 注册日期2003-07-25
  • 最后登录2009-04-13
  • 粉丝0
  • 关注0
  • 积分201分
  • 威望21点
  • 贡献值0点
  • 好评度20点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2007-08-06 15:31
谢谢楼上的,呵呵
 "MountFlags"=dword:11,这是表示Mounts the partition as ROM, and makes the partition not visible to users.也就是说这个分区是隐藏的!当然看不到了。
好的,我修改一下试试。
[img]D:gs.jpg[/img]
ddnewbie
驱动牛犊
驱动牛犊
  • 注册日期2003-07-25
  • 最后登录2009-04-13
  • 粉丝0
  • 关注0
  • 积分201分
  • 威望21点
  • 贡献值0点
  • 好评度20点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2007-08-06 15:55
已经OK了,谢谢楼上的兄弟,呵呵。。
[img]D:gs.jpg[/img]
游客

返回顶部