Page 1 of 1

Sharing an USB drive: which protocol?

Posted: Wed Nov 22, 2017 3:15 pm
by lollapalooza
I'd like to share a folder on my USB drive.
Router is WNDR3700v2, with Gargoyle latest version: 1.10.0

This folder contains videos to be played with Kodi on Amazon Fire TV Stick.

That is easy but:
  1. I don't want to login and manually unmount the drive any time I power-off the router, or I unplug the drive.
    So how do I force Gargoyle to mount the USB drive as read-only by default? Is there a file to edit to change this behaviour?
  2. Which protocol is better (CIFS/NFS), in order to keep as low as possible the CPU load on the router?
    There are a few HD files, and they often freeze for some time.
Thanks a lot.

Re: Sharing an USB drive: which protocol?

Posted: Wed Nov 29, 2017 1:37 pm
by lollapalooza
Nobody has an answer? :(

Re: Sharing an USB drive: which protocol?

Posted: Wed Nov 29, 2017 3:43 pm
by Lantis
If you google how to do this in Linux, you will have an answer.

I wouldn’t recommend pulling the harddrive without unmounting otherwise the system may exhibit unexpected behaviour.

Re: Sharing an USB drive: which protocol?

Posted: Sat Jan 13, 2018 5:43 pm
by lollapalooza
By reading OpenWRT documentation, I tried to edit the file /etc/config/fstab, by adding the following section:

Code: Select all

config 'mount'
        option  uuid            '0ce23c22-01'
        option  options         'ro,sync'
        option  target          '/mnt/usb'
Unfortunately the USB drive is still mounted as rw.

Any suggestion?