Skip to content
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

[Windows] Defragmenting mounted Veracrypt volume not possible #374

Open
zipplet opened this issue Oct 24, 2018 · 12 comments
Open

[Windows] Defragmenting mounted Veracrypt volume not possible #374

zipplet opened this issue Oct 24, 2018 · 12 comments

Comments

@zipplet
Copy link

zipplet commented Oct 24, 2018

Windows will not let me defragment any VeraCrypt volumes. Both tested volumes are "encrypted containers" (files) that are mounted in VeraCrypt. Both are NTFS.

The defrag UI shows "Optimization not available" for the 2 volumes I tried. Using the command line defrag tool results in it exiting immediately without displaying any information about the volume, like this example below:

C:\windows\system32>defrag h: /o
Microsoft Drive Optimizer
Copyright (c) Microsoft Corp.

C:\windows\system32>

Previously in the past I was able to defragment using the command line, but not with the UI. Now even the command line does not work. I am running the command as administrator.

OS: Windows 10 1803
VeraCrypt version: 1.23 (64-bit)

@hasanalizxc
Copy link

@zipplet
Copy link
Author

zipplet commented Oct 24, 2018

Thank you for the security warning. I'm aware that I should not be trying to defragment the volume that contains the container, and that defragmenting the mounted container is bad practice (it should only be done if I use device level encryption).

It used to be possible regardless however, I'm not sure why it stopped working. I'll test to see if a device hosted volume will defragment.

@hasanalizxc
Copy link

Please test and write results.

@GH-Rake
Copy link

GH-Rake commented May 24, 2019

v1.23 was released which included this in the changelog:

Add Driver option in the UI to explicitly allow Windows 8.1 and Windows 10 defragmenter to see VeraCrypt encrypted disks.

Did you try enabling this option and use Windows UI defragmenter?

@csware
Copy link
Contributor

csware commented Dec 16, 2019

Seems still to be an issue with 1.24-hotfix1. defrag d: /o still does nothing (also the optimize dialog shows "drive type unknown"), however, defrag d: works.

@GH-Rake
Copy link

GH-Rake commented Dec 16, 2019

I'm using 1.24-Hotfix1 on Windows 10 1903 and defrag /o works fine for me

@csware
Copy link
Contributor

csware commented Dec 22, 2019

defrag

@zipplet
Copy link
Author

zipplet commented May 9, 2020

I'm able to defragment now using "defrag /o" with the new option under driver settings.

@stale
Copy link

stale bot commented Dec 30, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Dec 30, 2020
@csware
Copy link
Contributor

csware commented Dec 31, 2020

THis is still an issue with 1.24-Update7 for me.

@stale stale bot removed the wontfix label Dec 31, 2020
@stale
Copy link

stale bot commented Mar 1, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Mar 1, 2021
@csware
Copy link
Contributor

csware commented Mar 1, 2021

Still an issue with latest VeraCrypt (1.24 Update7).

@stale stale bot removed the wontfix label Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants