[Windows 11] Feature request: run local commands after mount / before dismount (per favorite volume)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start by tracing the mount and dismount paths named in the request: GUI, tray, hotkeys, auto-dismount, and command-line /d; the issue does not identify source files or tests. Determine where per-favorite settings are stored and how commands could run with a timeout and affect dismount. Done means commands run at the requested lifecycle points across those paths, with the specified cancellation behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Desired behavior
Follow-up to #131, which was closed automatically by the stale bot in 2021 without being implemented. I need this specifically on Windows 11, where there is currently no reliable way to do it.
Please add the ability to run local commands after mount and before/after dismount, configured per favorite volume.
Use case: we keep a PostgreSQL data directory on a VeraCrypt volume (Windows service). The service must be started after the volume is mounted and, more importantly, stopped before dismount: PostgreSQL's background processes keep files open, so a normal dismount fails with "files in use", and a forced dismount (including auto-dismount on user logoff with "Force auto-dismount" enabled) makes PostgreSQL crash and run crash recovery on the next start.
Why existing Windows 11 mechanisms don't solve it:
- Wrapper .bat/.ps1 scripts around
VeraCrypt.exe /vand/donly work when the user uses them; they don't cover mounting/dismounting from the GUI, tray icon, hotkeys or auto-dismount. - Group Policy shutdown scripts run only after user logoff, i.e. after VeraCrypt's logoff auto-dismount has already happened, and they are skipped entirely when Fast Startup is enabled (Windows 11 default).
- Polling for the drive letter in a scheduled task covers mount only, not dismount.
Screenshots/Mockup/Designs
In Favorites > Organize Favorite Volumes, three new fields per volume:
- Run after mount: [ command ]
- Run before dismount: [ command ] timeout: [ 60 ] s
- Run after dismount: [ command ]
Additional information
- Run "before dismount" synchronously (with the configurable timeout) before VeraCrypt checks for open files, for every dismount path: GUI, tray, hotkey, auto-dismount (logoff, power saving, inactivity), command line
/d. - Allow the command to run elevated if needed (stopping a Windows service requires administrator rights).
- Pass drive letter and volume path as arguments or environment variables.
- If the pre-dismount command returns non-zero, cancel the dismount (unless forced).
- Commands are stored locally (not inside the container), which avoids the security concern of a volume executing code on mount.
This would cover any Windows service whose data lives on an encrypted volume (databases, sync clients, backup agents).
Your Environment
VeraCrypt version: 1.26.29
Operating system and version: Windows 11 Pro, 26H2
System type: 64-bit
- Lingua principale
- C
- Stelle
- 11.7k
- Fork
- 1.4k
- Merge medio
- 1g 1h
- PR unite (30g)
- 28
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di veracrypt/VeraCrypt
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 5/5 Più di una settimana Idoneità per principianti 32/100
veracrypt/VeraCrypt#1995 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
veracrypt/VeraCrypt#1993 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
veracrypt/VeraCrypt#1991 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di veracrypt/VeraCrypt
Issue simili
-
Signed/unsigned mix in the EOCD backward scan rejects valid archives with a 65535-byte commentAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
bug game: 01008BA02525A000 ios
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
area/ysql kind/bug priority/medium status/awaiting-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
yugabyte/yugabyte-db#37523 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
ly05010419/MacNativeGames#2079 ·
I maintainer di solito rispondono entro 1 giorno