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

Can not delete drive with net use <drive>: /d

Open pluraltouch opened this issue 2 years ago • 1 comments

I can successfully map a drive, however I can not delete it.

Using sshfs-win version 3.5.20357 with winfsp 2.0.23075. (I can successfully delete a winfsp memory drive, it that information matters)

image

System info:

OS Name: Microsoft Windows 11 Pro OS Version: 10.0.22000 N/A Build 22000 OS Build Type: Multiprocessor Free System Type: x64-based PC Processor(s): 1 Processor(s) Installed. [01]: Intel64 Family 6 Model 167 Stepping 1 GenuineIntel ~3912 Mhz BIOS Version: American Megatrends Inc. 1007, 2021. 07. 08. Total Physical Memory: 16GB Available Physical Memory: 7GB Virtual Memory: Max Size: 41GB Hotfix(s): 6 Hotfix(s) Installed. [01]: KB5030650 [02]: KB5028856 [03]: KB5011048 [04]: KB5012170 [05]: KB5031358 [06]: KB5031591 Hyper-V Requirements: A hypervisor has been detected.

pluraltouch avatar Nov 07 '23 08:11 pluraltouch

I had this as well, pain in the backside. The only solution I found to work was from here: https://www.wintips.org/fix-this-network-connection-does-not-exist-windows-10-11/

Head straight to section 2 and go from there with the regedit solution. Their nuke from orbit solution on the key HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2 is not entirely necessary, if you can see the offending subkeys with \\sshfs\REMUSER@HOST then you can just delete those.

I personally had no entries under HKEY_CURRENT_USER\Network, maybe they were already deleted from trying net use s: /delete and mountvol s: /d. After a reboot all is well once more.

NebularNerd avatar Feb 06 '24 17:02 NebularNerd