LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-23-2019, 12:09 AM   #1
JackBug
LQ Newbie
 
Registered: Jun 2008
Location: Lara Victoria Australia
Distribution: Ubuntu
Posts: 5

Rep: Reputation: 0
Network dropped connection on reset error


I'm not sure if this is the right forum for this question.
It's not a network problem but more of a samba issue.

I'm running Linux Mint 19.2 XFCE on a desktop PC.
The issue I'm having is when I try to move or copy a large file > 500K from the PC to a USB-Disk that's set up as a samba drive on my Technicolor EPC3940ADL router (supplied by my ISP), I get this message:
"there was an error copying the file into smb://iinetcable-smb/storage/USB-Drive/ -- Network dropped connection on reset."
Moving any file from the Network Share USB drive to the PC presents no problems.

I had no problem on the same PC running Linux Mint 17.3 or from another Linux PC running Linux Mint 18.3.

I have tried a couple of different distributions using "live CDs" with the same result (same computer and other computers). These other distributions are based on Ubuntu 18.04.
I believe something has changed (samba protocols?) in 18.04 that has bought about my problem.

I cannot change anything in the router and the only option available to access the USB-Drive is samba.

Any help appreciated.
John
 
Old 11-23-2019, 05:24 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,219

Rep: Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994
It does look like a version problem. SMB version 1 has a bunch of security problems, Microsoft has dropped support and most mainstream distributions default to version 2+. Since you posted smb:// I assume your connecting to your router using the file browser versus mounting via the command line. I don't know if the file browser built in samba client has changed too will have to check.

As a workaround mount the share using the command line by specifying vers=1.0

https://forums.linuxmint.com/viewtopic.php?t=276519
 
Old 12-02-2019, 09:42 PM   #3
JackBug
LQ Newbie
 
Registered: Jun 2008
Location: Lara Victoria Australia
Distribution: Ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the link michaelk.
It was useful in pointing me towards understanding my problem.

These are the steps I took to solve my problem.
For reference, the router IP is 192.168.10.1 and the Samba share name is iinetcable-smb

Firstly I created a share point:

sudo mkdir /mnt/router-share

and added the following line to /etc/fstab

//192.168.10.1/storage /mnt/router-share cifs guest,vers=1.0

ran the command:-

sudo mount -a

and it came back with:- "mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)"

I then did some digging into mount.cif so that I could try mounting the router share from the command line instead of constantly editing /etc/fstab.

sudo mount -t cifs -o guest,vers=1.0 //192.168.10.1/storage /mnt/router-share

This returned the same error message.

I also tried substituting the samba name for the IP address.

sudo mount -t cifs -o guest //iinetcable-smb/storage /mnt/router-share

The response was:- "mount error: could not resolve address for iinetcable-smb: Unknown error"

Was this an address issue or maybe I had the wrong share directory, I ran the command:-

smbclient -N -L 192.168.10.1

It returned the error:- Connection to 192.168.10.1 failed (Error NT_STATUS_IO_TIMEOUT)

However, if I run the command:-

smbclient -N -L //iinetcable-smb

It returns with all the sharenames, servers and workgroups.

Very confused.
After more digging and Googling, I came across nmblookup

nmblookup iinetcable-smb

It returned the result:- 192.168.10.12 iinetcable-smb<00>

The IP address is different to the router address!

Changing the IP in the mount command used earlier:-

sudo mount -t cifs -o guest,vers=1.0 //192.168.10.12/storage /mnt/router-share/

Mounted the router USB-Share without error and I was able to copy large files to it without problem.
I amended the IP for the router in /etc/fstab and everything works OK.

I tried other SMB version numbers (2.0,3.0) with the command line mount command but they returned the same "mount error(2): No such file or directory" response.

I'll add SOLVED to this thread as this seems to be the best solution to my problem.
I think eventually I'll remove the /etc/fstab entry and set up a custom action in the File Manager to run a small script to mount the router share as needed.

Regards,
John
 
Old 12-02-2019, 09:55 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,219

Rep: Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994
You can also use autofs or systemd automount feature to only mount the share when you access its mount point.

I just tried transferring a 681MB file from my router share to my Mint 19.2 VM and back and was successful. I need to try a bigger file.

Last edited by michaelk; 12-02-2019 at 10:25 PM.
 
Old 12-02-2019, 11:51 PM   #5
JackBug
LQ Newbie
 
Registered: Jun 2008
Location: Lara Victoria Australia
Distribution: Ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you again michaelk.

Googled "systemd automount" and clicked on the first link: https://forums.linuxmint.com/viewtop...8aa268723d2ae6

The answer supplied by altair4 explained exactly what I want.

So I changed the mount point to my home directory and re-edited /etc/fstab to:-

//192.168.10.12/storage /home/john/router-share cifs rw,guest,vers=1.0,iocharset=utf8,_netdev,noperm,noauto,user 0 0

A mount icon appeared in the side panel of the File Manager. Clicked on it and the share directory opened up with full access to all the files.
Perfect.

Regards,
John
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent reset of network settings reset after cable unplug Mega-X Linux - Networking 5 01-02-2013 05:58 PM
squirrelmail error - ERROR: Connection dropped by IMAP server. deep27ak Linux - Newbie 5 09-27-2011 05:06 AM
Install ruby gems - connection reset, connection reset..... deco81 Linux - Software 1 06-16-2010 05:47 PM
Squirrelmail - ERROR : Connection dropped by imap-server. luca2005 Linux - Software 2 06-10-2008 07:25 AM
Postfix error "Server dropped connection yofori Linux - Networking 2 02-22-2004 06:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration