Mount a filesystem read-only

Is it possible to mount an NTFS filesystem read-only, then later switch it
to read/write ? (Analogous to UNIX, where “/” starts off as R/O, then is
switched to R/W with a startup script.)

Carl


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Yes, it is possible with a filter, but it is a pain.

-----Original Message-----
From: xxxxx@veritas.com [mailto:xxxxx@veritas.com]
Sent: Friday, June 22, 2001 9:41 AM
To: File Systems Developers
Subject: [ntfsd] Mount a filesystem read-only

Is it possible to mount an NTFS filesystem read-only, then later switch it
to read/write ? (Analogous to UNIX, where “/” starts off as R/O, then is
switched to R/W with a startup script.)

Carl


You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> Is it possible to mount an NTFS filesystem read-only, then later switch it

No. NTFS is a logged filesystem and thus will refuse mounting on read-only
disk.
At least it was so on NT4.

Max


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Not so, I created virtual drives, formatted them as NTFS, then remounted
them as read-only, and that worked.

Regards,
Max

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
Sent: Saturday, June 23, 2001 4:16 AM
To: File Systems Developers
Subject: [ntfsd] Re: Mount a filesystem read-only

Is it possible to mount an NTFS filesystem read-only, then later switch it

No. NTFS is a logged filesystem and thus will refuse mounting on read-only
disk.
At least it was so on NT4.

Max


You are currently subscribed to ntfsd as: xxxxx@acronis.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Yes, under w2k, NTFS can mount as read-only; I think, 100% surely not under
NT 4.0

Jamey

----- Original Message -----
From: Max Lyadvinsky
To: File Systems Developers
Sent: Saturday, June 23, 2001 9:54 AM
Subject: [ntfsd] Re: Mount a filesystem read-only

> Not so, I created virtual drives, formatted them as NTFS, then remounted
> them as read-only, and that worked.
>
> Regards,
> Max
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
> Sent: Saturday, June 23, 2001 4:16 AM
> To: File Systems Developers
> Subject: [ntfsd] Re: Mount a filesystem read-only
>
>
> > Is it possible to mount an NTFS filesystem read-only, then later switch
it
>
> No. NTFS is a logged filesystem and thus will refuse mounting on read-only
> disk.
> At least it was so on NT4.
>
> Max
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@acronis.com
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Have you failed IOCTL_DISK_IS_WRITEABLE on them?

----- Original Message -----
From: “Max Lyadvinsky”
To: “File Systems Developers”
Sent: Saturday, June 23, 2001 9:54 AM
Subject: [ntfsd] Re: Mount a filesystem read-only

> Not so, I created virtual drives, formatted them as NTFS, then remounted
> them as read-only, and that worked.
>
> Regards,
> Max
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
> Sent: Saturday, June 23, 2001 4:16 AM
> To: File Systems Developers
> Subject: [ntfsd] Re: Mount a filesystem read-only
>
>
> > Is it possible to mount an NTFS filesystem read-only, then later switch
it
>
> No. NTFS is a logged filesystem and thus will refuse mounting on read-only
> disk.
> At least it was so on NT4.
>
> Max
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@acronis.com
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> From: xxxxx@lists.osr.com

[mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
Sent: Saturday, June 23, 2001 4:16 AM
To: File Systems Developers
Subject: [ntfsd] Re: Mount a filesystem read-only

No. NTFS is a logged filesystem and thus will refuse mounting on read-only
disk. At least it was so on NT4.

Does logging really imply lack of “read-only-ability”? I mean…like,
doesn’t logging only occur when writes are happening?

  • Jay

You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

NTFS must update the last access time when a file is accessed. So, NTFS must
support read/write to do this.

Jamey

----- Original Message -----
From:
To: File Systems Developers
Sent: Monday, June 25, 2001 8:38 AM
Subject: [ntfsd] Re: Mount a filesystem read-only

> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
> > Sent: Saturday, June 23, 2001 4:16 AM
> > To: File Systems Developers
> > Subject: [ntfsd] Re: Mount a filesystem read-only
> >
> >
> > No. NTFS is a logged filesystem and thus will refuse mounting on
read-only
> > disk. At least it was so on NT4.
>
> Does logging really imply lack of “read-only-ability”? I mean…like,
> doesn’t logging only occur when writes are happening?
>
> - Jay
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

This used to be documented in the Microsoft Knowledge Base. I’m not sure
why, but I cannot find it anymore. The gist of the KB article was that the
update of last access time seriously affected performance during any file
system traversal, such as using the file Search dialog on the Start Menu.
Anyway, you can disable the update of the last access time by adding the
following registry key:

Key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\FileSystem\NtfsDisableLa
stAccessUpdate

Value: DWORD, 1

-----Original Message-----
From: Jamey Kirby [mailto:xxxxx@storagecraft.com]
Sent: Monday, June 25, 2001 12:03 AM
To: File Systems Developers
Subject: [ntfsd] Re: Mount a filesystem read-only

NTFS must update the last access time when a file is
accessed. So, NTFS must
support read/write to do this.

Jamey

----- Original Message -----
From:
> To: File Systems Developers
> Sent: Monday, June 25, 2001 8:38 AM
> Subject: [ntfsd] Re: Mount a filesystem read-only
>
>
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com]On Behalf Of
> Maxim S. Shatskih
> > > Sent: Saturday, June 23, 2001 4:16 AM
> > > To: File Systems Developers
> > > Subject: [ntfsd] Re: Mount a filesystem read-only
> > >
> > >
> > > No. NTFS is a logged filesystem and thus will refuse mounting on
> read-only
> > > disk. At least it was so on NT4.
> >
> > Does logging really imply lack of “read-only-ability”? I
> mean…like,
> > doesn’t logging only occur when writes are happening?
> >
> > - Jay
> >
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> > To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@nsisw.com
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Interesting…

----- Original Message -----
From: Rob Fuller
To: File Systems Developers
Sent: Monday, June 25, 2001 7:31 PM
Subject: [ntfsd] Re: Mount a filesystem read-only

> This used to be documented in the Microsoft Knowledge Base. I’m not sure
> why, but I cannot find it anymore. The gist of the KB article was that
the
> update of last access time seriously affected performance during any file
> system traversal, such as using the file Search dialog on the Start Menu.
> Anyway, you can disable the update of the last access time by adding the
> following registry key:
>
> Key:
>
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\FileSystem\NtfsDisableLa
> stAccessUpdate
>
> Value: DWORD, 1
>
> > -----Original Message-----
> > From: Jamey Kirby [mailto:xxxxx@storagecraft.com]
> > Sent: Monday, June 25, 2001 12:03 AM
> > To: File Systems Developers
> > Subject: [ntfsd] Re: Mount a filesystem read-only
> >
> >
> > NTFS must update the last access time when a file is
> > accessed. So, NTFS must
> > support read/write to do this.
> >
> > Jamey
> >
> > ----- Original Message -----
> > From:
> > To: File Systems Developers
> > Sent: Monday, June 25, 2001 8:38 AM
> > Subject: [ntfsd] Re: Mount a filesystem read-only
> >
> >
> > > > From: xxxxx@lists.osr.com
> > > > [mailto:xxxxx@lists.osr.com]On Behalf Of
> > Maxim S. Shatskih
> > > > Sent: Saturday, June 23, 2001 4:16 AM
> > > > To: File Systems Developers
> > > > Subject: [ntfsd] Re: Mount a filesystem read-only
> > > >
> > > >
> > > > No. NTFS is a logged filesystem and thus will refuse mounting on
> > read-only
> > > > disk. At least it was so on NT4.
> > >
> > > Does logging really imply lack of “read-only-ability”? I
> > mean…like,
> > > doesn’t logging only occur when writes are happening?
> > >
> > > - Jay
> > >
> > >
> > >
> > > —
> > > You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> > > To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@nsisw.com
> > To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
>
> —
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Dumb question: So how do you get NTFS to mount a volume read-only in the 1st
place?

If I set my virtual disk device’s characteristics to read_only, they don’t
get propagated up past disk/classpnp FDO up to diskperf FiDO. And the
subesquent partition PDO’s created by disk.sys don’t have the read_only
flag. Even if I use a debugger to hack all devices in the disk & volume
stack, NTFS still won’t treat the volumes as read_only. This was on
Whistler beta 2 BTW.

So there’s obviously something else that I need to do to truely mark my
virtual storage device as read_only. Any ideas?

-----Original Message-----
From: Rob Fuller [mailto:xxxxx@NSISW.COM]
Sent: Monday, June 25, 2001 10:31 AM
To: File Systems Developers
Subject: [ntfsd] Re: Mount a filesystem read-only

This used to be documented in the Microsoft Knowledge Base. I’m not sure
why, but I cannot find it anymore. The gist of the KB article was that the
update of last access time seriously affected performance during any file
system traversal, such as using the file Search dialog on the Start Menu.
Anyway, you can disable the update of the last access time by adding the
following registry key:

Key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\FileSystem\NtfsDisableLa
stAccessUpdate

Value: DWORD, 1

-----Original Message-----
From: Jamey Kirby [mailto:xxxxx@storagecraft.com]
Sent: Monday, June 25, 2001 12:03 AM
To: File Systems Developers
Subject: [ntfsd] Re: Mount a filesystem read-only

NTFS must update the last access time when a file is
accessed. So, NTFS must
support read/write to do this.

Jamey

----- Original Message -----
From:
> To: File Systems Developers
> Sent: Monday, June 25, 2001 8:38 AM
> Subject: [ntfsd] Re: Mount a filesystem read-only
>
>
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com]On Behalf Of
> Maxim S. Shatskih
> > > Sent: Saturday, June 23, 2001 4:16 AM
> > > To: File Systems Developers
> > > Subject: [ntfsd] Re: Mount a filesystem read-only
> > >
> > >
> > > No. NTFS is a logged filesystem and thus will refuse mounting on
> read-only
> > > disk. At least it was so on NT4.
> >
> > Does logging really imply lack of “read-only-ability”? I
> mean…like,
> > doesn’t logging only occur when writes are happening?
> >
> > - Jay
> >
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> > To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@nsisw.com
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntfsd as: xxxxx@timesn.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com