I want to mount a Box drive onto wsl2 so that I can access the same locally/cloud synced files on two different systems (windows and linux). Box is a FAT32 file system, which I believe is supported by drvfs mount.
I can mount it just fine if I mount it from the .bashrc file using the following mount command:
sudo mount -t drvfs 'C:\Users\Jakda\Box' /mnt/box
I can then access /mnt/box via a symbolic link in my home directory.
The problem with this is I have to enter in my sudo password every time I open a WSL terminal, something I can't always do.
I've put this line in /etc/fstab
'C:\Users\Jakda\Box' /mnt/box drvfs defaults 0 0
and when I run mount -a
I get:
<4>WARNING: mount: waiting for virtio device...<3>init: (110) ERROR: MountPlan9WithRetry:285: mount drvfsa on /mnt/box (cache=mmap,rw,msize=262144,trans=virtio,aname=drvfs;path='C:\Users\Jakda\Box';symlinkroot=/mnt/) failed: 2mount: No such file or directory
I've been trying this for a while now and I don't know what to do.