Quantcast
Channel: Active questions tagged mount+fstab - Ask Ubuntu
Viewing all articles
Browse latest Browse all 699

Mounting my PC Box network drive onto wsl2 with drvfs works manually but not in /etc/fstab

$
0
0

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.


Viewing all articles
Browse latest Browse all 699

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>