Mount NTFS as read only problem

I’m creating a VHD, then trying to mount it read only. I’m changing the disk signature to avoid collision, so disk mounts fine, and partitions are visible. However NTFS volume is displayed as RAW, thus the volume cannot be seen in the system.

If I mount it with Read/Write just once, after that it mounts in read-only mode just fine.

Anyone can suggest what is making the file system driver to fail mount the volume on first read only access? Thanks

Where are the contents of the VHD coming from? It sounds like the NTFS metadata is inconsistent on the volume and needs repaired.

-scott
OSR
@OSRDrivers

Thanks for your response. Indeed, looks like some type of inconsistency.
What I do I just create a VSS snapshot of a volume, then save it to VHDX file using Windows virtual disk API.
I wonder if it is some VSS snapshot-related issue…

Ok found out the reason - when creating the virtual disk I was zeroing out the $Logfile clusters to save some space. After disabling that optimization the disk mounts in read-only mode just fine.

Arshak

Premature optimization strikes again!

Thanks for letting us know the resolution.

-scott
OSR
@OSRDrivers