Keeping CIFS mount over unstable WiFi

0

I have a FreeNAS box that contains all of my music and movies. Since I want this box accessible to both myself (Linux desktop) and my wife (Windows desktop) I have the filesystems on this box exported via a "Windows share" (i.e. Samba), which worked fine when there was a wired connection between my desktop and the FreeNAS box. Now they are connected over WiFi via a Netgear Orbi system, and it seems like the connection between them goes down every so often. When this happens, the filesystems become inaccessible, even after the connection comes back, and my Crashplan backup reports these filesystems as "missing".

How do I make it so a temporary disruption in the connection doesn't kill the mounted filesystems on my desktop?

Kit Peters

Posted 2017-05-22T14:20:22.203

Reputation: 165

1Are you sure it's not changing IP address and infact this interuption isn't a DHCP renewal with a new IP? Smb should automatically reconnect when accessed, so something isn't right here. – djsmiley2k TMW – 2017-05-22T14:46:25.667

1@djsmiley2k I'm not sure all implementations of SMB will automatically reconnect after a temporary disconnection? – I say Reinstate Monica – 2017-05-22T15:50:11.713

Answers

1

SMB transparent reconnect is available from SMB dialect 2.1. This was especially intended to keep transfers over unstable (wifi) connections. Which SMB is your FreeNAS supporting? Maybe you can upgrade it to support 2.1+?

Mark Rabinovich

Posted 2017-05-22T14:20:22.203

Reputation: 119

I'm not sure. How would I find out what version of SMB my NAS supports? – Kit Peters – 2017-05-24T18:12:30.247

1Use wireshark to take packet capture and inspect yhr very first SMB which is Negotiate – Mark Rabinovich – 2017-05-26T02:03:42.533