I have a remote computer running Ubuntu 17.10 with Samba version 4.6.7 running. 8 gigs of ram. It sits basically idle and has next to nothing running on it.
I have two external USB hard drives connected via USB 3.0. Both are mounted automatically in fstab. Both are then shared via Samba. My old drive called "usb" works great with normal transfer rates. My newer drive called "media" has performance issues. When I try to transfer files to it, it hangs and causes network errors. It is also slow to browse in Nautilus or Windows Explorer. Both are configured the same. I however stream media from it without issues.
I have swapped USB socket locations as well as swapped the USB cables themselves. I have tried different Samba configurations and tried different sized files. I am at a loss for what to try next. I have searched google, stack and here and need some help. I have pasted what I feel are the relvant commands. Please let me know if you need anything else.
For reference: Western Digital Technologies(/home/dylan/usb) is the old drive and Seagate(/home/dylan/media) is the new drive that isn't working perfectly.
Code:
dylan@AhDaBooj:~$ cat /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = AhDaBooj
security = user
map to guest = bad user
name resolve order = bcast host
dns proxy = no
bind interfaces only = yes
socket options = TCP_NODELAY
# add to the end
[Media]
path = /home/dylan/usb
writable = yes
guest ok = no
read only = no
browsable = yes
create mode = 0777
directory mode = 0777
valid users = @dylan
[NewMedia]
path = /home/dylan/media
writable = yes
guest ok = no
read only = no
browsable = yes
create mode = 0777
directory mode = 0777
valid users = @dylan
Code:
dylan@AhDaBooj:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb1 during installation
UUID=928365ae-4bee-4344-a2cd-0da3b7f17f3e / ext4 errors=remount-ro 0 1
/swapfile none swap sw 0 0
UUID=4E1AEA7B1AEA6007 /home/dylan/usb auto auto,user,sync 0 2
UUID=90C89524C8950A1C /home/dylan/media auto auto,user,sync 0 2
/dev/sr0 /home/dylan/cdrom iso9660 ro,noauto 0 2
Code:
dylan@AhDaBooj:~$ lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 003: ID 1058:083a Western Digital Technologies, Inc.
Bus 009 Device 002: ID 0bc2:2322 Seagate RSS LLC
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Code:
dylan@AhDaBooj:~$ sudo lsusb -vvv |grep -i -B5 -A5 bDeviceProtocol
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0002 2.0 root hub
bcdDevice 4.13
iManufacturer 3 Linux 4.13.0-38-generic ehci_hcd
--
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0001 1.1 root hub
bcdDevice 4.13
iManufacturer 3 Linux 4.13.0-38-generic ohci_hcd
--
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0001 1.1 root hub
bcdDevice 4.13
iManufacturer 3 Linux 4.13.0-38-generic ohci_hcd
--
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0002 2.0 root hub
bcdDevice 4.13
iManufacturer 3 Linux 4.13.0-38-generic ehci_hcd
--
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0001 1.1 root hub
bcdDevice 4.13
iManufacturer 3 Linux 4.13.0-38-generic ohci_hcd
--
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0002 2.0 root hub
bcdDevice 4.13
iManufacturer 3 Linux 4.13.0-38-generic ehci_hcd
--
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0001 1.1 root hub
bcdDevice 4.13
iManufacturer 3 Linux 4.13.0-38-generic ohci_hcd
--
bLength 18
bDescriptorType 1
bcdUSB 3.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 9
idVendor 0x1058 Western Digital Technologies, Inc.
idProduct 0x083a
bcdDevice 10.65
iManufacturer 2 Western Digital
--
bLength 18
bDescriptorType 1
bcdUSB 3.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 9
idVendor 0x0bc2 Seagate RSS LLC
idProduct 0x2322
bcdDevice 1.00
iManufacturer 2 Seagate
--
bLength 18
bDescriptorType 1
bcdUSB 3.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 3
bMaxPacketSize0 9
idVendor 0x1d6b Linux Foundation
idProduct 0x0003 3.0 root hub
bcdDevice 4.13
iManufacturer 3 Linux 4.13.0-38-generic xhci-hcd
--
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 1 Single TT
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0002 2.0 root hub
bcdDevice 4.13
iManufacturer 3 Linux 4.13.0-38-generic xhci-hcd
Bookmarks