VeraCrypt icon indicating copy to clipboard operation
VeraCrypt copied to clipboard

Issues with Windows USB energy saving (it ignores/fails to detect VC volume in use)

Open JustMyGithub opened this issue 9 months ago • 3 comments

Expected behavior

When a drive is used, USB energy is not cut off and the volume is dismounted

Observed behavior

After some time of continuous write, veracrypt-hosting usb hdd is disconnected (and therefore dismounted) and the copy fails. It may only happen with locked OS. Sometimes it was after less than 20 Minutes, sometimes it took more than 40 minutes.

Steps to reproduce

  1. Have energy management for usb devices turned on in windows. Afair its default.
  2. copy a large file from a bitlocker usb-hdd to a veracrypt usb-hdd
  3. (maybe required: lock screen)
  4. wait

Your Environment

Windows 10, VC 1.26.24, 64 bit, 2,5" usb hdds (powered via USB)

I tested 3 usb drives, 2 cables and 2 usb ports (cables and ports all combinations). Bitlocker (source) drive was never affected, but veracrypt one was several times. After disabling usb device energy management in windows energy settings, it immediately worked for several hours without issues.

So I assume that windows can detect the hdd corresponding to a bitlocker drive (and its activity and hence not cut usb power off) but not the hdd corresponding to a veracrypt drive and tehrefore it cuts of the usb port if energy saving for usb is enabled.

I am nut sure whether this can be fixed by VC or only on the windows side, but definitely it is a bug.

JustMyGithub avatar Jul 15 '25 20:07 JustMyGithub

That's a long living bug: https://github.com/veracrypt/VeraCrypt/issues/1443

andry81 avatar Jul 16 '25 18:07 andry81

It is not the same issue:

  • 1443 is a container, this is a partition
  • 1443 does fail to dismount, even if requested, this does dismount automatically,
  • 1443 is a 3,5" usb drive case which means it is powered externaly, not via USB, like the external hdds I used
  • 1443 is an issue with waking up after sleeping, this is short-term disconnect

BUT I suggest you try to disable energy saving for USB and test your AgeStar 3U2B3A and check whether this solves your issue.

JustMyGithub avatar Jul 17 '25 08:07 JustMyGithub

BUT I suggest you try to disable energy saving for USB and test your AgeStar 3U2B3A and check whether this solves your issue.

These issues some how related to the USB connection, not just to a particular device. Because the issue is catched on other devices attached to the USB.

andry81 avatar Jul 17 '25 12:07 andry81