This one had me poking around as this would be interesting
functionality. I found one hit in the newsgroups from a Molly Brown (mollybro)
saying it is possible and a one liner in MSDN around I/O Subsystem enhancements
.
"NTFS will now mount read-only
on an underlying read-only volume. If the volume requires a log restart or a
Chkdsk, the mount will fail."
That would seem to mean to me that it will do it
automatically if the volume itself is somehow read only through the hardware
versus failing to mount at all.
Otherwise I looked at
the obvious candidates for doing that like fsutil and mountvol and see nothing.
The root api that I am aware of is SetVolumeMountPoint and it doesn't have way
to specify optional params like that...
Possibly there is something in the Shadow Copy API
which MS is hiding from normal people at the moment, you have to be an ISV (and
under NDA) to see them or alternatively, there might be something in the
DeviceIoControl function that could be leveraged. I will admit to not messing
around in that area at all. Might be a good question to send to Solomon or
Russinovich...
joe
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael B. Smith
Sent: Friday, July 23, 2004 3:44 PM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] [OT] NTFS Read-only Status
I've tried this on
other groups, and it is not A/D related. But you guys know so
much...
I want a way to
mount an NTFS volume read-only. I want a magic command like "mode e: read-only".
:-)
It is clear to me
(and I've found references) that this is supported with NTFS (Windows XP and
above), but I cannot figure out/find out how to set it.
Any
ideas?
Thanks,
Michael
