Getting EvenID 141 after Virtual StorPort Miniport disk is mounted

Hi,

I implemented Virtual StorPort MiniPort driver in which I’m mounting an existing disk (like C: drive disk) as read only disk and everything works fine except I see an EvenID 141 in event viewer after my replica disk is mounted. Am I missing anything from driver point of view?

Here is the Event Viewer log:

====
The description for Event ID 141 from source Ntfs cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

I:\System Volume Information\MountPointManagerRemoteDatabase

the message resource is present but the message is not found in the string/message table

Duplicate MountDev entries in the on-disk MountMgr database?

To make a disk read-only, there is no need in StorPort miniport. Just use the disk filter to fail all write stuff with STATUS_MEDIA_WRITE_PROTECTED and respond to IOCTL_DISK_IS_WRITABLE (and a couple of other “query” IOCTLs) as “read-only”.


Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com

wrote in message news:xxxxx@ntdev…
> Hi,
>
> I implemented Virtual StorPort MiniPort driver in which I’m mounting an existing disk (like C: drive disk) as read only disk and everything works fine except I see an EvenID 141 in event viewer after my replica disk is mounted. Am I missing anything from driver point of view?
>
> Here is the Event Viewer log:
>
> ====
> The description for Event ID 141 from source Ntfs cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
>
> If the event originated on another computer, the display information had to be saved with the event.
>
> The following information was included with the event:
>
> I:\System Volume Information\MountPointManagerRemoteDatabase
>
> the message resource is present but the message is not found in the string/message table
> ====
>
>

Hi Shatskih,

I didnt see any any duplicate entries in HKLM\System\MountedDevices, Mountvol and HKEY_USERS.…\MountPoints2.

Is there any way I can check on-disk MountMgr database?

I chosen virtual storport for not making a disk read-only. This is for mounting disks from File/Network etc. and I’m testing driver with live Physical-disk mounting.

Thanks,
Sunil.