• March 29, 2024, 12:44:01 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: USB port working with Linux?  (Read 3220 times)

Iangho

  • Level 1 Member
  • *
  • Posts: 10
USB port working with Linux?
« on: July 02, 2020, 03:17:14 PM »

I'd like to use the USB port, which I can get working with Win10 but not my laptop's Kubuntu. If you have it working with a variance of Linux could you please post the fstab entry? Ta.
Logged

Iangho

  • Level 1 Member
  • *
  • Posts: 10
Re: USB port working with Linux?
« Reply #1 on: July 02, 2020, 10:07:23 PM »

I've figured it out, answer below. So that you aren't disappointed. I already have a MYBOOKLIVE mounted which transfers at about 36MBps, which is OK but I would have like a tad more oomph! Unfortunately, the usb port only transfers at 6MBps using ethernet, half that using wireless. I tried two different USB drives and got the same result.

First, plug a usb drive into the router. Log in and click on "USB device" on the router's home page. Bottom right hand corner "Go to settings". User/create user. make sure Samba is enabled, then click "Browse". You want the root name at the top. Make a note of the name.

I'm using Kubuntu but it will work with Ubuntu and derivatives.
Next enter the commnad line.
Isntall CIFS if it isn't already installed.

sudo apt-get install cifs-utils

Create a directory of your choice. I chose usb in /media.

sudo mkdir /media/usb

Open fstab to edit

sudo nano /etc/fstab

add the following line

//192.168.0.1/JMicron_Tech_00161  /media/usb  cifs  username=Admin,password=******,uid=1000,iocharset=utf8,users,vers=1.0  0  0

conrol-X, yes, yes to save.

My router is 192.168.0.1, which corresponds to the usb drive, JMicron_Tech_00161. My password is six numbers, replace * with your admin password to access the router. I think I read that the DIR-882 uses vers=1.0, I also tried 2.0 and 3.0. They worked but no increase in speed so left it at 1.0. MYBOOKLIVE uses 2.0.

That's it, folks.
« Last Edit: July 02, 2020, 11:52:48 PM by Iangho »
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: USB port working with Linux?
« Reply #2 on: July 03, 2020, 09:23:02 AM »

Thank you for sharing.

Enjoy.  ;)
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

Iangho

  • Level 1 Member
  • *
  • Posts: 10
Re: USB port working with Linux?
« Reply #3 on: July 03, 2020, 03:35:18 PM »

My pleasure! If you want it to mount when you logon so that you can use it with BackInTime. At the moment it mounts when you open Dolphin.

Edit this file

sudo nano /etc/network/if-up.d/fstab

Add the following lines

#!/bin/sh
mount -a

Save it. Then to start at boot

sudo chmod +x /etc/network/if-up.d/fstab

It's 4 July in Australia: God save the Queen and Happy Birthday USA. :)
Logged

Iangho

  • Level 1 Member
  • *
  • Posts: 10
Re: USB port working with Linux?
« Reply #4 on: July 03, 2020, 07:58:57 PM »

I can't get BackInTime working with the router's usb drive. The error message is about rsync failing to set times and no such file or directory. If anybody has it working would appreciate some simple instructions I can follow.
Logged