52
28
I feel like this is a really simple and fundamental function that Windows should have, but so far Google has been telling me it isn't possible. How can I mount an NTFS partition read-only in Windows?
Everett's answer works! (Thanks.)
Additional info about diskpart
:
If you have multiple volumes in a disk, neither
detail vol
norattr vol
shows the correct read-only status. It shows the read-only status of the last modified volume. Try these:sel vol 1
,attr vol set readonly
,sel vol 2
,attr vol clear readonly
,sel vol 1
. Nowdetail vol
shows that volume 1 is not read-only, but it actually is.If you modify a volume with Linux's
ntfs-3g
and then bring it to Windows, it cannot be mount read-only.If you run
attr disk set readonly
, none of the disk's volume can be mounted.
1Without trying to detract from an otherwise nice question and answer, if one wants to try to use ATTR/ATT on an old and archaic version of Windows (i.e. XP), diskpart 5.1.3565 doesn't support that command. Why one might want to use an XP version of diskpart might be seem to present quite a puzzle, but, well, just saying, I couldn't use the goodness in this question and answer - the question did not constrain the question to particular vintages of Windows. – kbulgrien – 2017-08-09T22:19:20.060