Skip to content

By default Windows 10’s WSL has trouble opening paths on mounted VeraCrypt volumes. This works around this limitation.

License

Notifications You must be signed in to change notification settings

jonasw234/wsl-open-veracrypt-volume

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

By default Windows 10’s WSL has trouble opening paths VeraCrypt volumes. This works around this limitation.

What the files do

open-wsl-here.reg adds a registry key to add the “Open WSL here” context menu item (based on https://www.tenforums.com/tutorials/60125-open-bash-window-here-context-menu-add-windows-10-a.html). This creates a file called “wsl_path.txt” in your temp directory. Next you need to add source wslpath-veracrypt.zsh to your .zshrc and it will automatically try to read the “wsl_path.txt” file and switch to the directory indicated by it if the file was modified not longer than one minute before. Since environment variables are different between Windows and WSL, you might need to adjust the paths if your Windows username doesn’t match your WSL username.

Limitations

When you start your first WSL shell, all the currently active drives are mounted. If new drives are added later, you need to manually mount them using

sudo mkdir /mnt/a
sudo mount -t drvfs A: /mnt/a

About

By default Windows 10’s WSL has trouble opening paths on mounted VeraCrypt volumes. This works around this limitation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages