-
Notifications
You must be signed in to change notification settings - Fork 213
Really open disk as read only and do not use encrypted_volume_size metadata #252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
It is not recommended to merge regarding the modification of encrypted_volume_size, as the value will not be updated when shrinking Bitlocker. That does not have any effect. If the Bitlocker is extended, the value will be updated automatically. |
Do not trust size provided from metadata
You have to use the read-only flags for that, both when unlocking the encrypted volume file (dislocker-file is created) and when mounting the dislocker-file as ntfs volume. This should be enough. you can set as read-only the device or partition itself: For hardware level:
I don't understand what you mean. You mean resizing the volume with Windows while it's mounted or after that? Can you provide example before and after the resizing so we can see real values? Maybe it's been already fixed in a more recent commit @benjarobin |
|
@haobinnan do you recommend to close this PR? |
yes |
|
I no longer needs this modification since I am no longer using a Windows with bitlocker. But to explain again my issue:
So the proposal was to ignore the size in the bitlocker metadata, and only rely on the partition size. |
|
@benjarobin I think that happens also with the partition label of a Bitlocker volume. If you rename a Bitlocker drive in Windows, the new label will be displayed in My Computer but the old label will remain also in the metadata forever. I don't know if you ever realized but I think there can be other fields duplicated. Likely those fields can't be renamed without decrypting and encrypting again the volume. I'll try to reproduce the issue of the partition size and label. If dislocker shows the size and label of the bitlocker as values that don't match the current values but those are the values stored in the metadata, it's a correct implementation. You have to use other system tools to get the values for the unlocked volume or partition, that are the real ones. This is what looks like to me I may be wrong. |
I am sharing these 2 commits: