Ubuntu on Windows - accessing Network drives - solved

  1. jimbo45's Avatar
    Posts : 10,558
    Windows / Linux : Arch Linux

    Ubuntu on Windows - accessing Network drives - solved

    Hi folks

    tinkering around with UBUNTU on Windows (WSL) -- great fun

    You can access Networked drives without using SAMBA

    This command does it :

    sudo mount -t drvfs '\\server\share' /mnt/share

    haven't worked out though how to "get at" Windows local drives.

    This command works for getting at external USB's though
    $ sudo mkdir /mnt/d (only needed ist time to create target directory for the mount)
    $ sudo mount -t drvfs D: /mnt/d

    to unmount safely.

    $ sudo umount /mnt/d

    For GUI programs see my other post in this thread

    Some will run fine - others will need DBUS -- not implemented in WSL.

    However a TCP get around (I think Linux users are Hacker by nature !!!)

    sudo sed -i 's/<listen>.*<\/listen>/<listen>tcp:host=localhost,port=0<\/listen>/' /etc/dbus-1/session.conf

    This will use tcp instead of Linux / Unix use of sockets.

    I think this whole idea is quite fun -- probably not what Ms intended but a great idea having WSL in the first place -- am sure it will get better and better - especially with a few hacks and tweaks !!

      My Computer

  2. slicendice's Avatar
    Posts : 4,645
    Windows 10 Pro x64 20H2 Build 19042.906 (Branch: Release Preview)

    You are really digging deep into this WSL world.

    I like it. Keep going!
      My Computers


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 14:31.
Find Us

Windows 10 Forums