OpenWrt Forum Archive

Topic: Customize filesystem in Luci/Mount points

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

Hi everyone.
I'm customizing my openwrt compilation and because I use NTFS USB hard disks with samba I need to mount it as ntfs-3g.
If I mount it as ntfs it works as /mnt/sda1 but I can't share it.
If I mount it as ntfs-3g it works as /mnt/sda1 and also can be shared smile

In order to mount I use Luci to automount my hard disk but I need to click in "--custom--" and write "ntfs-3g".
By default LuCi gives me all the option you can see in the screenshot:
Screenshot openWRT ntfs

What file should I modify to make LuCi show filesystem like this by default?:
Screenshot openWRT ntfs-3g

Thank you.

P.S.: By the way, if I mount it as ntfs it can't be shared but it can be mounted and umounted correctly.
If I use ntfs-3g it can be shared and mounted... but I can't umount it sad

root@OpenWrt:~# umount /mnt/sda1
umount: can't umount /mnt/sda1: Device or resource busy

(Last edited by Reflected_God on 24 Jan 2014, 03:10)

After almost a year, I've found a good way to do what I wanted.

First of all, I'm using the same router, but now I've Barrier breaker installed.

Searching for a way to solve my problem I read this: https://gist.github.com/lanceliao/455687b8e9780d8e487d

Then I create 10-mount, 20-swap and block.sh, but I modified 10-mount in order to use ntfs-3g instead of ntfs.

So right now my router detects automatically my USB filesystem, create a fstab entry using the UUID and use ntfs-3g in order to have read & write access.

I've modified the umount command too, adding -f (force) & -l (lazy umount) parameters and it umounts correctly too smile

I hope this help anyone.

Best regards.

The discussion might have continued from here.