DEV Community

Cover image for How to access EFS folders from the Windows File Explorer using WSL2
Federico Navarrete
Federico Navarrete

Posted on • Updated on • Originally published at supernovaic.blogspot.com

How to access EFS folders from the Windows File Explorer using WSL2

EFS is the default place for storing your volumes when you use Fargate and ECS in AWS. This is fine when your main workstation is any Linux distro, but what happens when you work in Windows?

The easy option is to use Windows Subsystem for Linux (Ubuntu, in my case) and mount your EFS:

sudo mount -t nfs4 -o rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport MY_IP_ADDRESS:/ efs

This is fine if you just want to access your files or folders from your console, and you don't need to do anything more complex with them. However, if you want to map it as a "regular" Network Drive and/or access it from the Windows File Explorer can be tricky. This is how I accomplished it:

Step 1. Create your efs folder in this location /mnt/wsl.
Step 2. Mount your efs using the previous command.
Step 3. Go to this location \\wsl$ in the File Explorer, and get your Distro's root. In my case, \\wsl$\Ubuntu

wsl location

Step 4. Copy your Distro's path and map it as your new Network Drive in Windows:

mount path

mount drive

mounted

And that's all. Now you can access your EFS from your Network Drive, for example, Z:\mnt\wsl\efs

Follow me on:

Personal LinkedIn YouTube Instagram Cyber Prophets Sharing Your Stories
Personal LinkedIn YouTube Instagram RedCircle Podcast RedCircle Podcast

sponsor me

Top comments (0)