• August 05, 2020, 07:46:35 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 344 times)

Iangho

  • Level 1 Member
  • *
  • Posts: 9
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: 9
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: 49031
  • 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
"Nothing Funny about It...." We are not here to Impress anyone! You have a be a COMPETENT user first to under stand COMPETENT help!

Iangho

  • Level 1 Member
  • *
  • Posts: 9
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: 9
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