Once you have obtained Basic USB support, you now want to connect a storage (USB stick, USB harddisk, etc) device to your router. Using kmod-fs-ntfs only provides read support. This HowTo will show you how to obtain read/write support for NTFS volumes.
/dev, for example
fdiskoptional Required to autodetect the filesystem type when using the hotplug script.
There is nothing to configure! Note however, you can only mount a partition to an existing directory. You can create on with
mkdir, for example
mkdir -p /mnt/usb-ntfs.
To manually mount a partition:
ntfs-3g /dev/sda1 /mnt/usb-ntfs -o rw,sync
This forum post might be relevant if you already have built OpenWrt by yourself you have to rebuild the firmware with the Busybox's mount melper option enabled and reflash the new image. If you have not yet built OpenWrt once, Documentation - Building may help.
Now that you can get your volume to mount on command, the next step is mounting it when it's plugged in automatically.
To get our drive to mount on plugin, we utilize the hotplug system.
Create the following files as
(The script above comes from this blog post)
Now, whenever you plug in an NTFS USB disk, it should automatically mount. (Note that this will be a different path than
I made some modifications to the above script so that it would create mount points from label names if those are available otherwise it reverts back to using the device as with the original script. This makes it easier to have consistent samaba shares. This was tested with OpenWrt Chaos Calmer 15.05-rc3 - clayclai