OpenWrt Forum Archive

Topic: USB share with NFS ans permissions

The content of this topic has been archived on 5 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

After moving from dd-wrt to Openwrt in a TP-Link WR842ND to integrate transmission in the router I'm quite happy with the change but I'm stuck in one thing that I'm not able to solve and I would appreciate some help (not a Unix expert)

My set-up:
- firmware:OpenWrt Barrier Breaker r36713 / LuCI Trunk (svn-r9829)
- added packages: kmod-usb-storage;transmission set
- USB fat HDD

Everything runs smoothly, usb mounts automatically and I'm able to manage torrent files and save everything into the USB HDD.

The problemcomes when trying to access the USB drive from a client. I'm able to mount the drive, but there is no way I can make it writable (I only can read files).

/etc/exports:
/mnt/usb    *(rw,sync,no_subtree_check,insecure,all_squash)

I access it from OSX Mountain Lion or Raspberry Pi:
mount -o rw 192.168.1.2:/mnt/usb /home/pi/HDDVirtual

When I try to write to the dir I always get the message: permission denied.

I've played with all kind of changes in exports and mount parameters reflected in different posts but without any succcess.

How should I set it up to have rw access? I'm not concerned about security since the HDD is only for movies and it is internal.

Thanks a lot for your help.

Is this NTFS? Without extra kmods it is read only

EDIT: saw the bit about FAT. What really is your filesystem?

(Last edited by robthebrew on 30 May 2013, 16:36)

robthebrew wrote:

Is this NTFS? Without extra kmods it is read only

EDIT: saw the bit about FAT. What really is your filesystem?

The drive is formatted as FAT and in fstab I have:
config mount
    option device    /dev/sda1
    option options    rw,sync
    option enabled    1
    option enabled_fsck 0
    option target   /mnt/usb

Some good progress ...

If I mount it with umask=000 I have write access.

I was able to test it with a unix machine (raspberry pi) bu with Mountain Lion I'm only able to mount it in read mode (no write access). It seems that this is more related to ML from what 've read in other forums.

ML should be able to read and write Fat. I can't write to NTFS without third party software (whose name I can't remember).
It could be a permissions issue. In Terminal on ML, what is the output of ls -al on the FAT drive?

At the end I've set it up samba for easier access. I was not using NTFS but fat and I've found it is much easier to use Samba

What I don't know is if there is too much difference in performance between both.

The discussion might have continued from here.