Mount filesystems permanently from /etc/fstab
It's great that I can mount file systems or USB devices through drvfs but these mounts don't persists when all Linux shells are closed.
How does one mount filesystems permanently, say through /etc/fstab ?
Surely it shouldn't be necessary to manually mount filesystems after the last Linux shell has been closed and a new is invoked.
So wsl.conf is your friend you know. /etc/fstab is now fully supported with Insider build 17093. So you can either manually add fstab entries or you can use the new wsl.conf to do the work for you and do a few other things too with your mounts (adding the extended metadata attribute for example.)
If I were MS, I'd consider this ask as completed.
John Cowan commented
You can effectively accomplish this by writing a .bash_login script in your home directory something like this:
if [ ! -e winhome/NTUSER.DAT ]
then sudo mount --bind /mnt/c/Users/John\ Cowan winhome
Just replace the mount command by whatever mount commands you want, and the file "winhome/NTUSER.DAT" with a filename that will reliably exist if your mounts are in place. Then the first Linux window will require you to type your Linux password, but later windows will not. (I use this one to mount my Windows home directory under Linux.)