Sunday, January 17, 2021

Can't acces USB Drive over wireless network

So, you have a USB drive plugged into your wireless router, but you can't access it in your file manager over the network.

It may be that your router is using a networking protocol that is now deprecated, and no longer supported by your computer.

It may also be that the manufacturer of your router has not issued a firmware update so the router can use an up-to-date version of the protocol.

If you still want to use your router to access a USB drive, the security risk over a home network seems to be minimal, and there is a way to get your computer to use the old protocol.

If you are using Windows 10, which has dropped support for the old protocol, you should have a look at this guide.

I'm going to be looking at the issue in Thunar on XFCE in Debian Testing (Bullseye). 

I was trying to access the USB drive plugged into my router on a new installation of Debian Bullseye. (Having installed the necessary packages. And this one too, which didn't help, but may be necessary.)

I could do so using the ftp address supplied by the router, but not by using the "Browse Network" option in Thunar, where I could see an icon for the drive but not open it.

I put in the smb address for a folder on the drive and got this error message.

Failed to mount windows share. Software caused connection abort.

After much searching, I found that the reason was the deprecated protocol mentioned above.

The issue is discussed at the Manjaro Linux Forum, and at askubuntu.com, as indeed is the solution, so thanks to users at both of those places.

The solution can be implemented in Thunar by creating the following folder and file:

/etc/samba/smb.conf

And adding the line:

client min protocol = NT1

(Although Thunar uses Samba to access network folders, it does not need Samba to be installed - it's part of the gvfs-smb backend - so unless you have Samba already installed, you have to create the samba folder, which doesn't involve installing Samba and its many dependencies. I can't remember where I read this advice in all the links I looked at, but thanks go to whoever it was that mentioned it - I can't take any credit.)

After logging out and back in, you will be able to open your network drive and access folders and files on it.

Yay!








No comments:

Post a Comment