sshfs-win icon indicating copy to clipboard operation
sshfs-win copied to clipboard

Mount to non-root path not supported?

Open bobsage123 opened this issue 2 years ago • 5 comments

If I choose to mount to a drive letter directly, such as the below, I have no issue.

net.exe use b: \\sshfs\[email protected]

But, if I choose to mount directly to a second level folder, I receive error 67. I get this if the destination folder already exists or if it has not been created yet.

Below example will give error:

net.exe use b:\abc123 \\sshfs\[email protected]

Any recommendations?

bobsage123 avatar Dec 31 '21 07:12 bobsage123

Are you trying to mount a directory named abc123 on [email protected] at B: ? Then the command should be; net.exe use b: \sshfs\[email protected]\abc123\

GitHubTecH1337 avatar Jan 17 '22 15:01 GitHubTecH1337

Are you trying to mount a directory named abc123 on [email protected] at B: ? Then the command should be; net.exe use b: \sshfs[[email protected]](mailto:[email protected])\abc123\

Nope, I'm trying to mount [email protected] to b:\abc123

bobsage123 avatar Jan 17 '22 23:01 bobsage123

A couple of issues here:

  • I do not believe that net use supports mounting on directories. You must use a (new) drive letter to mount.

  • If you use sshfs-win directly then you can mount on directories. However WinFsp does not support mounting over a directory that already exists (as opposed to UNIX-like systems). See this FAQ entry on FUSE mounting: https://github.com/billziss-gh/winfsp/wiki/Frequently-Asked-Questions#fuse

billziss-gh avatar Feb 04 '22 14:02 billziss-gh

Could you perhaps let me know the syntax for mounting to a directory via the windows command prompt? I only see examples on how to map via SSH.

Thanks

bobsage123 avatar Feb 06 '22 21:02 bobsage123

Please see the README: https://github.com/billziss-gh/sshfs-win#advanced-usage

billziss-gh avatar Feb 07 '22 09:02 billziss-gh